SiteConfig Class Reference
[Config]

Environment settings for a site. More...

List of all members.

Public Member Functions

 __construct ($siteDir_)
 Constructor.
 getLogDir ()
 Get the log file directory for this site.
 getCacheDir ()
 Get the cache file directory for this site.

Private Attributes

 $_siteDir
 The site directory.


Detailed Description

Environment settings for a site.

Each directory under /opt/RootLive/Site is a Site. This class will have a representation object for each Site. The representation is created by Config

Author:
Daniel Lindh <[email protected]>

Definition at line 12 of file SiteConfig.php.


Constructor & Destructor Documentation

SiteConfig::__construct ( siteDir_  ) 

Constructor.

Will set the site directory.

Parameters:
$siteDir_ - string - Site directory.

Definition at line 22 of file SiteConfig.php.

00023   {
00024     $this->_siteDir = $siteDir_;
00025   }


Member Function Documentation

SiteConfig::getCacheDir (  ) 

Get the cache file directory for this site.

Returns:
string

Definition at line 42 of file SiteConfig.php.

00043   {
00044     return $this->_siteDir . 'Temp/Cache/';
00045   }

SiteConfig::getLogDir (  ) 

Get the log file directory for this site.

Returns:
string

Definition at line 32 of file SiteConfig.php.

00033   {
00034     return $this->_siteDir . 'Temp/Log/';
00035   }


Member Data Documentation

SiteConfig::$_siteDir [private]

The site directory.

Example

 /opt/RootLive/Site/DistSysOpProduction

Definition at line 55 of file SiteConfig.php.


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:28:24 2009 for fareofficelib by  doxygen 1.5.8