OXID eShop CE
4.10.8
|
Public Member Functions | |
__construct ($sFileName) | |
getVar ($sVarName) | |
setVar ($sVarName, $sValue) | |
isVarSet ($sVarName) | |
getVars () | |
setFile ($sFileName) |
Private Member Functions | |
_loadVars ($sFileName) |
Wraps and provides getters for configuration constants stored in configuration file (usually config.inc.php).
Definition at line 6 of file oxconfigfile.php.
OxConfigFile::__construct | ( | $sFileName | ) |
Initializes the instance. Loads config variables from the file.
string | $sFileName | Configuration file name |
Definition at line 27 of file oxconfigfile.php.
|
private |
Performs variable loading from configuration file by including the php file. It works with current configuration file format well, however in case the variable storage format is not satisfactory this method is a subject to be changed.
string | $sFileName | Configuration file name |
Definition at line 17 of file oxconfigfile.php.
OxConfigFile::getVar | ( | $sVarName | ) |
Returns loaded variable value by name.
string | $sVarName | Variable name |
Definition at line 39 of file oxconfigfile.php.
OxConfigFile::getVars | ( | ) |
Returns all loaded vars as an array
Definition at line 76 of file oxconfigfile.php.
OxConfigFile::isVarSet | ( | $sVarName | ) |
Checks by name if variable is set
string | $sVarName | Variable name |
Definition at line 66 of file oxconfigfile.php.
OxConfigFile::setFile | ( | $sFileName | ) |
Sets custom config file to include
string | $sFileName | custom configuration file name |
Definition at line 88 of file oxconfigfile.php.
OxConfigFile::setVar | ( | $sVarName, | |
$sValue | |||
) |
Set config variable.
string | $sVarName | Variable name |
string | $sValue | Variable value |
Definition at line 54 of file oxconfigfile.php.