Config_File
Config file reading class
Located in /includes/classes/smarty/Config_File.class.php (line 38)
boolean
$booleanize
= true (line 52)
Controls whether config values of on/true/yes and off/false/no get converted to boolean values automatically.
Options
boolean
$fix_newlines
= true (line 63)
Controls whether or not to fix mac or dos formatted newlines.
Options If set to true, \r or \r\n will be changed to \n.
boolean
$overwrite
= true (line 46)
Controls whether variables with the same name overwrite each other.
Options
boolean
$read_hidden
= true (line 57)
Controls whether hidden config sections/vars are read from the file.
Options
mixed
$_config_data
= array() (line 68)
Constructor Config_File (line 76)
Constructs a new config file class.
- string $config_path: (optional) path to the config files
clear (line 217)
Clear loaded config data for a certain file or all files.
- string $file_name: file to clear config data for
get (line 112)
Retrieves config info based on the file, section, and variable name.
- string $file_name: config file to get info for
- string $section_name: (optional) section to get info for
- string $var_name: (optional) variable to get info for
get_file_names (line 164)
Get all loaded config file names.
get_key (line 152)
Retrieves config info based on the key.
- $file_name $config_key: string config key (filename/section/var)
get_section_names (line 176)
Get all section names from a loaded file.
- string $file_name: config file to get section names from
get_var_names (line 195)
Get all global or section variable names.
- string $file_name: config file to get info for
- string $section_name: (optional) section to get info for
- $section
load_file (line 233)
Load a configuration file manually.
- string $file_name: file name to load
- boolean $prepend_path: whether current config path should be prepended to the filename
parse_contents (line 271)
parse the source of a configuration file manually.
- string $contents: the file-contents to parse
set_file_contents (line 260)
Store the contents of a file manually.
- string $config_file: file name of the related contents
- string $contents: the file-contents to parse
set_path (line 88)
Set the path where configuration files can be found.
- string $config_path: path to the config files

