OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct ($fileName) | |
getVar ($varName) | |
setVar ($varName, $value) | |
isVarSet ($varName) | |
getVars () | |
setFile ($fileName) | |
Private Member Functions | |
_loadVars ($fileName) | |
Wraps and provides getters for configuration constants stored in configuration file (usually config.inc.php).
OxidEsales\EshopCommunity\Core\ConfigFile::__construct | ( | $fileName | ) |
Initializes the instance. Loads config variables from the file.
string | $fileName | Configuration file name |
|
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 | $fileName | Configuration file name |
OxidEsales\EshopCommunity\Core\ConfigFile::getVar | ( | $varName | ) |
Returns loaded variable value by name.
string | $varName | Variable name |
OxidEsales\EshopCommunity\Core\ConfigFile::getVars | ( | ) |
Returns all loaded vars as an array
OxidEsales\EshopCommunity\Core\ConfigFile::isVarSet | ( | $varName | ) |
Checks by name if variable is set
string | $varName | Variable name |
OxidEsales\EshopCommunity\Core\ConfigFile::setFile | ( | $fileName | ) |
Sets custom config file to include
string | $fileName | custom configuration file name |
OxidEsales\EshopCommunity\Core\ConfigFile::setVar | ( | $varName, | |
$value | |||
) |
Set config variable.
string | $varName | Variable name |
string | $value | Variable value |