Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
mConfig Class Reference

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_pathThe full path to the configuration file
string$config_formatThe file format used by the configuration file [OPTIONAL]
string$cache_nameThe 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_pathThe full path to the configuration file
array$configThe config array to be saved
string$config_formatThe file format used by the configuration file

The documentation for this class was generated from the following file: