Öffentliche Methoden | |
| Config_File ($config_path=NULL) | |
| set_path ($config_path) | |
| get ($file_name, $section_name=NULL, $var_name=NULL) | |
| & | get_key ($config_key) |
| get_file_names () | |
| get_section_names ($file_name) | |
| get_var_names ($file_name, $section=NULL) | |
| clear ($file_name=NULL) | |
| load_file ($file_name, $prepend_path=true) | |
| set_file_contents ($config_file, $contents) | |
| parse_contents ($contents) | |
| _set_config_var (&$container, $var_name, $var_value, $booleanize) | |
| _trigger_error_msg ($error_msg, $error_type=E_USER_WARNING) | |
Öffentliche Attribute | |
| $overwrite = true | |
| $booleanize = true | |
| $read_hidden = true | |
| $fix_newlines = true | |
| $_config_path = "" | |
| $_config_data = array() | |
Definiert in Zeile 38 der Datei Config_File.class.php.
| Config_File::_set_config_var | ( | &$ | container, | |
| $ | var_name, | |||
| $ | var_value, | |||
| $ | booleanize | |||
| ) |
#@+ private
| array | &$container | |
| string | $var_name | |
| mixed | $var_value | |
| boolean | $booleanize determines whether $var_value is converted to to true/false |
Definiert in Zeile 352 der Datei Config_File.class.php.
Benutzt $booleanize und _trigger_error_msg().
Wird benutzt von parse_contents().

| Config_File::_trigger_error_msg | ( | $ | error_msg, | |
| $ | error_type = E_USER_WARNING | |||
| ) |
trigger_error() creates a PHP warning/error
| string | $error_msg | |
| integer | $error_type one of |
Definiert in Zeile 386 der Datei Config_File.class.php.
Wird benutzt von _set_config_var(), get(), get_section_names(), get_var_names(), load_file() und set_path().
| Config_File::clear | ( | $ | file_name = NULL |
) |
Clear loaded config data for a certain file or all files.
| string | $file_name file to clear config data for |
Definiert in Zeile 217 der Datei Config_File.class.php.
| Config_File::Config_File | ( | $ | config_path = NULL |
) |
#@- Constructs a new config file class.
| string | $config_path (optional) path to the config files |
Definiert in Zeile 76 der Datei Config_File.class.php.
Benutzt set_path().

| Config_File::get | ( | $ | file_name, | |
| $ | section_name = NULL, |
|||
| $ | var_name = NULL | |||
| ) |
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 |
Definiert in Zeile 112 der Datei Config_File.class.php.
Benutzt _trigger_error_msg() und load_file().

| Config_File::get_file_names | ( | ) |
Get all loaded config file names.
Definiert in Zeile 164 der Datei Config_File.class.php.
| & Config_File::get_key | ( | $ | config_key | ) |
Retrieves config info based on the key.
| $file_name | string config key (filename/section/var) |
Definiert in Zeile 152 der Datei Config_File.class.php.
| Config_File::get_section_names | ( | $ | file_name | ) |
Get all section names from a loaded file.
| string | $file_name config file to get section names from |
Definiert in Zeile 176 der Datei Config_File.class.php.
Benutzt _trigger_error_msg().

| Config_File::get_var_names | ( | $ | file_name, | |
| $ | section = NULL | |||
| ) |
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 |
Definiert in Zeile 195 der Datei Config_File.class.php.
Benutzt _trigger_error_msg().

| Config_File::load_file | ( | $ | file_name, | |
| $ | prepend_path = true | |||
| ) |
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 |
Definiert in Zeile 233 der Datei Config_File.class.php.
Benutzt _trigger_error_msg() und parse_contents().
Wird benutzt von get().

| Config_File::parse_contents | ( | $ | contents | ) |
parse the source of a configuration file manually.
| string | $contents the file-contents to parse |
Definiert in Zeile 271 der Datei Config_File.class.php.
Benutzt $booleanize und _set_config_var().
Wird benutzt von load_file() und set_file_contents().

| Config_File::set_file_contents | ( | $ | config_file, | |
| $ | contents | |||
| ) |
Store the contents of a file manually.
| string | $config_file file name of the related contents | |
| string | $contents the file-contents to parse |
Definiert in Zeile 260 der Datei Config_File.class.php.
Benutzt parse_contents().

| Config_File::set_path | ( | $ | config_path | ) |
Set the path where configuration files can be found.
| string | $config_path path to the config files |
Definiert in Zeile 88 der Datei Config_File.class.php.
Benutzt _trigger_error_msg().
Wird benutzt von Config_File().

| Config_File::$_config_data = array() |
Definiert in Zeile 68 der Datei Config_File.class.php.
| Config_File::$_config_path = "" |
#@- private
Definiert in Zeile 67 der Datei Config_File.class.php.
| Config_File::$booleanize = true |
Controls whether config values of on/true/yes and off/false/no get converted to boolean values automatically.
Definiert in Zeile 52 der Datei Config_File.class.php.
Wird benutzt von _set_config_var() und parse_contents().
| Config_File::$fix_newlines = true |
Controls whether or not to fix mac or dos formatted newlines. If set to true, or
will be changed to
.
Definiert in Zeile 63 der Datei Config_File.class.php.
| Config_File::$overwrite = true |
Controls whether variables with the same name overwrite each other.
Definiert in Zeile 46 der Datei Config_File.class.php.
| Config_File::$read_hidden = true |
Controls whether hidden config sections/vars are read from the file.
Definiert in Zeile 57 der Datei Config_File.class.php.
| Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|