Easy access to various system settings.
More...
List of all members.
Detailed Description
Easy access to various system settings.
The system is checked to see whether a virtualhost-less setup is used and sets the appropriate variables which can be fetched with siteDir(), wwwDir() and indexFile(). It also detects file and enviroment separators, fetch them with fileSeparator() and envSeparator(). In addition userIndexFile(), adminIndexFile() and xmlrpcIndexFile() can be used to fetch the index file of the user page, admin page and xmlrpc interface.
Example:
Definition at line ezsys.php.
Constructor & Destructor Documentation
Member Function Documentation
eZSys::addAccessPath |
( |
$ |
path |
) |
[static] |
|
|
Sets the access path which is appended to the index file. - See also:
-
indexFile
Definition at line ezsys.php.
References path(). |
& eZSys::attribute |
( |
$ |
attr |
) |
|
|
|
Returns the attribute value for $attr or null if the attribute does not exist.
Definition at line ezsys.php.
References wwwDir(). |
eZSys::backupFilename |
( |
|
) |
|
|
|
- Returns:
-
the backup filename for this platform, returns .bak for win32 and ~ for unix and mac.
Definition at line ezsys.php.
References instance().
Referenced by eZINI::save(). |
eZSys::cacheDirectory |
( |
|
) |
[static] |
|
& eZSys::environmentVariable |
( |
$ |
variableName, |
|
|
$ |
quiet = false |
|
) |
|
|
eZSys::envSeparator |
( |
|
) |
[static] |
|
|
Returns the string which is used for enviroment separators on the current OS (server).
Definition at line ezsys.php.
References instance().
Referenced by init(). |
eZSys::fileSeparator |
( |
|
) |
[static] |
|
eZSys::filesystemType |
( |
|
) |
[static] |
|
|
- Returns:
-
the filesystem type, either
"win32" or "unix"
Definition at line ezsys.php.
References instance(). |
eZSys::hasAttribute |
( |
$ |
attr |
) |
|
|
|
Return true if the attribute $attr is set. Available attributes are wwwdir, sitedir or indexfile
Definition at line ezsys.php. |
eZSys::hostname |
( |
|
) |
[static] |
|
eZSys::indexDir |
( |
|
) |
[static] |
|
eZSys::indexFile |
( |
|
) |
[static] |
|
eZSys::indexFileName |
( |
|
) |
[static] |
|
eZSys::init |
( |
$ |
def_index = "index.php" |
) |
[static] |
|
|
Initializes some variables according to some global PHP values. This function should be called once in the index file with the parameters stated in the parameter list.
Definition at line ezsys.php.
References wwwDir(). |
eZSys::initIni |
( |
&$ |
ini |
) |
|
|
|
Initializes some variables which are read from site.ini - Warning:
-
Do not call this before init()
Definition at line ezsys.php.
References instance(). |
& eZSys::instance |
( |
|
) |
[static] |
|
eZSys::isDebugEnabled |
( |
|
) |
[static] |
|
|
- Returns:
-
true if debugging of internals is enabled, this will display which server variables are read. Set the option with setIsDebugEnabled().
Definition at line ezsys.php.
Referenced by init(). |
eZSys::lineSeparator |
( |
|
) |
[static] |
|
eZSys::magickQuotes |
( |
|
) |
[static] |
|
|
Returns true if magick quotes is enabled.
Definition at line ezsys.php. |
eZSys::osType |
( |
|
) |
[static] |
|
|
- Returns:
-
the os type, either
"win32" , "unix" or "mac"
Definition at line ezsys.php.
References instance(). |
& eZSys::path |
( |
$ |
quiet = false |
) |
|
|
|
- Returns:
-
the URI used for parsing modules, views and parameters, may differ from $_SERVER['REQUEST_URI'].
Definition at line ezsys.php.
References RequestURI.
Referenced by init(). |
eZSys::serverPort |
( |
|
) |
[static] |
|
& eZSys::serverVariable |
( |
$ |
variableName, |
|
|
$ |
quiet = false |
|
) |
|
|
eZSys::setEnvironmentVariable |
( |
$ |
variableName, |
|
|
$ |
variableValue |
|
) |
|
|
|
Sets the environment variable named $variableName to $variableValue. - Note:
-
Variables are only set for the current page view.
Definition at line ezsys.php. |
eZSys::setIsDebugEnabled |
( |
$ |
debug |
) |
[static] |
|
|
Sets whether internal debugging is enabled or not.
Definition at line ezsys.php. |
eZSys::setServerVariable |
( |
$ |
variableName, |
|
|
$ |
variableValue |
|
) |
|
|
|
Sets the server variable named $variableName to $variableValue. - Note:
-
Variables are only set for the current page view.
Definition at line ezsys.php. |
eZSys::siteDir |
( |
|
) |
[static] |
|
|
The path to where all the code resides.
Definition at line ezsys.php.
References SiteDir.
Referenced by init(). |
eZSys::storageDirectory |
( |
|
) |
[static] |
|
|
\ return the directory used for storing various kinds of files like images, audio and more. \Note This will include the varDirectory().
Definition at line ezsys.php.
References varDirectory(). |
eZSys::varDirectory |
( |
|
) |
[static] |
|
eZSys::wwwDir |
( |
|
) |
[static] |
|
The documentation for this class was generated from the following file:
|