Loads configuration from file and populates DB_Config object
Located in /db/db_config_loader_file.class.php [line 25]
Tangra_Class | --Config_Loader | --Config_Loader_File | --DB_Config_Loader_File
Methods
Inherited From Config_Loader_File
Config_Loader_File::$imports
Inherited From Config_Loader
Config_Loader::$pairs
Config_Loader_File::__construct() Loads the configuration file and parses it. Ater construction object is ready for use (calls to get_conf_value() method) Config_Loader_File::import_file() Config_Loader_File::load_file() Loads Config_Loader_File::parse_command_line() Parses line that contains command, e.g. starting with "!" Config_Loader_File::parse_conf_arr() Parses array returned by $this->parse_file_arr. Populates $this->pairs. Config_Loader_File::parse_file_arr() Parses array loaded by $this->load_file(). Skips rows that are commets or missformed (i.e. starting with blank space)
Config_Loader::__construct() It is supposed loading of the configuration from external resource as file or DB to be performed at construction time of Config_Loader objects. Config_Loader::add_pair() Adds new key-value pair Config_Loader::expand() Expands keys that are present in values Config_Loader::extract_key() Extracts single key that start at position $start in string $value Config_Loader::extract_keys() Extracts all keys (delimited by % from both sides) Config_Loader::get_conf_value() Gets coresponding to $key configuration value. Config_Loader::get_pairs() Returns all key-value pairs Config_Loader::set_pairs() Auxiliary method that may be used to set the internal private $pairs variable.
Inherited From Tangra_Class
Tangra_Class::get_class_name() Alias of get_class(). Exist because of historical reasons. Tangra_Class::__set() Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.
void load_db_config( DB_Config $db_config )