[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
[Code source] [Imprimer] [Statistiques]
Config_File class. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Author: | Andrei Zmievski <andrei@php.net> |
Copyright: | Copyright: 2001-2005 New Digital Group, Inc. |
Version: | 2.6.12 |
Poids: | 389 lignes (13 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Config_File:: (13 méthodes):
Config_File()
set_path()
get()
get_key()
get_file_names()
get_section_names()
get_var_names()
clear()
load_file()
set_file_contents()
parse_contents()
_set_config_var()
_trigger_error_msg()
Classe: Config_File - X-Ref
Config file reading classConfig_File($config_path = NULL) X-Ref |
Constructs a new config file class. param: string $config_path (optional) path to the config files |
set_path($config_path) X-Ref |
Set the path where configuration files can be found. param: string $config_path 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: string $file_name config file to get info for param: string $section_name (optional) section to get info for param: string $var_name (optional) variable to get info for return: string|array 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: string|array same as get() |
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: string $file_name 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: string $file_name config file to get info for param: string $section_name (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: string $file_name file to clear config data for |
load_file($file_name, $prepend_path = true) X-Ref |
Load a configuration file manually. param: string $file_name file name to load param: boolean $prepend_path whether current config path should be |
set_file_contents($config_file, $contents) X-Ref |
Store the contents of a file manually. param: string $config_file file name of the related contents param: string $contents the file-contents to parse |
parse_contents($contents) X-Ref |
parse the source of a configuration file manually. param: string $contents the file-contents to parse |
_set_config_var(&$container, $var_name, $var_value, $booleanize) X-Ref |
param: array &$container param: string $var_name param: mixed $var_value param: boolean $booleanize determines whether $var_value is converted to |
_trigger_error_msg($error_msg, $error_type = E_USER_WARNING) X-Ref |
param: string $error_msg param: integer $error_type one of |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |