Static Public Member Functions |
static | loadConfiguration ($config_path, $config_format= 'xml', $cache_name= 'app_config') |
Protected Member Functions |
| saveConfiguration ($config_path, $config_array, $config_format= 'xml') |
Member Function Documentation
static loadConfiguration |
( |
$ |
config_path, |
|
|
$ |
config_format = 'xml' , |
|
|
$ |
cache_name = 'app_config' |
|
) |
| [static] |
Loads the configuration file and stores it as an array in the object
- Parameters:
-
string | $config_path | The full path to the configuration file |
string | $config_format | The file format used by the configuration file [OPTIONAL] |
string | $cache_name | The name of the cache file [OPTIONAL] |
- Returns:
- array
saveConfiguration |
( |
$ |
config_path, |
|
|
$ |
config_array, |
|
|
$ |
config_format = 'xml' |
|
) |
| [protected] |
Saves the configuration array into a file
- Parameters:
-
string | $config_path | The full path to the configuration file |
array | $config | The config array to be saved |
string | $config_format | The file format used by the configuration file |
The documentation for this class was generated from the following file: