|
const | PHP_CONFIG_HANDLER = "php" |
|
const | XML_CONFIG_HANDLER = "xml" |
|
const | YAML_CONFIG_HANDLER = "yaml" |
|
SlaxWeb\Config\Container::__construct |
( |
Handler |
$handler | ) |
|
Class constructor
Set the injected config handler to the internal protected property.
- Parameters
-
\SlaxWeb\Config\Handler | $handler | Configuration handler |
SlaxWeb\Config\Container::addResDir |
( |
string |
$dir | ) |
|
Add Resource Location
Add an additional configuration resource location.
- Parameters
-
string | $dir | Additional resource location |
- Returns
- void
SlaxWeb\Config\Container::load |
( |
string |
$resourceName, |
|
|
bool |
$prependResourceName = false |
|
) |
| |
Load config resource
Combine the received configuration resource name with the '_configLocation' protected property, and pass it to the config handler.
- Parameters
-
string | $resourceName | Name of the configuration resource |
bool | $prependResourceName | If the resource name should be prepended to each config key |
- Returns
- void
SlaxWeb\Config\Container::offsetExists |
( |
|
$offset | ) |
|
Check offset exists
Check in the handler that the offset exists, and return true if it does, false otherwise.
- Parameters
-
string | $offset | Configuration key name |
- Returns
- bool
SlaxWeb\Config\Container::offsetGet |
( |
|
$offset | ) |
|
Get offset value
Get the value from the handler for the passed in offset. Return the value provided by the handler.
- Parameters
-
string | $offset | Configuration key name |
- Returns
- mixed
SlaxWeb\Config\Container::offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
Set offset value
Set the value to the handler for the passed in offset and value.
- Parameters
-
string | $offset | Configuration key name |
mixed | $value | Configuration value |
- Returns
- void
SlaxWeb\Config\Container::offsetUnset |
( |
|
$offset | ) |
|
Unset offset
Unset the configuration item with the offset key.
- Parameters
-
string | $offset | Configuration key name |
- Returns
- void
const SlaxWeb\Config\Container::PHP_CONFIG_HANDLER = "php" |
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/config/src/Container.php