OXID eShop CE
4.8.10
|
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 28 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 18 of file oxconfigfile.php.
OxConfigFile::getVar | ( | $sVarName | ) |
Returns loaded variable value by name.
string | $sVarName | Variable name |
Definition at line 40 of file oxconfigfile.php.
OxConfigFile::getVars | ( | ) |
Returns all loaded vars as an array
Definition at line 79 of file oxconfigfile.php.
OxConfigFile::isVarSet | ( | $sVarName | ) |
Checks by name if variable is set
string | $sVarName | Variable name |
Definition at line 69 of file oxconfigfile.php.
OxConfigFile::setFile | ( | $sFileName | ) |
Sets custom config file to include
string | $sFileName | custom configuration file name |
Definition at line 93 of file oxconfigfile.php.
OxConfigFile::setVar | ( | $sVarName, | |
$sValue | |||
) |
Set config variable.
string | $sVarName | Variable name |
string | $sValue | Variable value |
Definition at line 57 of file oxconfigfile.php.