| [ Index ] |
krapohl.info |
[Source view] [Print]
(no description)
| File Size: | 352 lines (10 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Config_File:: (12 methods):
Config_File()
set_path()
get()
get_key()
get_file_names()
get_section_names()
get_var_names()
clear()
load_file()
_parse_config_block()
_set_config_var()
_trigger_error_msg()
Class: Config_File - X-Ref
Config_File class.| Config_File($config_path = NULL) X-Ref |
| Constructs a new config file class. param: $config_path string (optional) path to the config files |
| set_path($config_path) X-Ref |
| Set the path where configuration files can be found. param: $config_path string path to the config files |
| get($file_name, $section_name = NULL, $var_name = NULL) X-Ref |
| Retrieves config info based on the file, section, and variable name. param: $file_name string config file to get info for param: $section_name string (optional) section to get info for param: $var_name string (optional) variable to get info for return: mixed a value or array of values |
| get_key($config_key) X-Ref |
| Retrieves config info based on the key. param: $file_name string config key (filename/section/var) return: mixed a value or array of values |
| get_file_names() X-Ref |
| Get all loaded config file names. return: array an array of loaded config file names |
| get_section_names($file_name) X-Ref |
| Get all section names from a loaded file. param: $file_name string config file to get section names from return: array an array of section names from the specified file |
| get_var_names($file_name, $section = NULL) X-Ref |
| Get all global or section variable names. param: $file_name string config file to get info for param: $section_name string (optional) section to get info for return: array an array of variables names from the specified file/section |
| clear($file_name = NULL) X-Ref |
| Clear loaded config data for a certain file or all files. param: $file_name string file to clear config data for |
| load_file($file_name, $prepend_path = true) X-Ref |
| Load a configuration file manually. param: $file_name string file name to load param: $prepend_path boolean whether current config path should be prepended to the filename |
| _parse_config_block($config_block) X-Ref |
| No description |
| _set_config_var(&$container, $var_name, $var_value, $booleanize) X-Ref |
| No description |
| _trigger_error_msg($error_msg, $error_type = E_USER_WARNING) X-Ref |
| No description |
| Generated: Wed Feb 16 22:40:07 2005 | Cross-referenced by PHPXref 0.6 |