SlaxWeb\Config\XmlHandler::__construct |
( |
array |
$resDir, |
|
|
\Desperado\XmlBundle\Model\XmlReader |
$xml |
|
) |
| |
XmlHandler constructor
Set the Desperado to the protected property for use later.
- Parameters
-
array | $resDir | Configuration resource locations |
\Desperado\XmlBundle\Model\XmlReader | $xml | XML reader object |
SlaxWeb\Config\XmlHandler::load |
( |
string |
$config, |
|
|
bool |
$prependResourceName = false |
|
) |
| |
Load the Config File
Check if the file exists, load it, and parse the containing array into the the internal container array. Return 'CONFIG_LOADED' constant on success. If the file is not found, return 'CONFIG_RESOURCE_NOT_FOUND' constant, and 'CONFIG_PARSE_ERROR' if the contants could not have been parsed.
- Parameters
-
string | $config | Path to the config resource |
bool | $prependResourceName | If the resource name should be prepended to each config key |
- Returns
- int
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/config/src/XmlHandler.php