Static Public Member Functions | |
| static | exists ($key) |
| static | get ($key, $default=null) |
| static | set ($key, $val) |
| static | clear ($key) |
Static Protected Attributes | |
| static | $registry = array() |
Configuration registry class
Definition at line 14 of file config.php.
| static Config::clear | ( | $ | key | ) | [static] |
| static Config::exists | ( | $ | key | ) | [static] |
See if a key exists
| string | $key key name |
Definition at line 34 of file config.php.
Referenced by InstallHandler::act_begin_install(), Options::get_all_options(), and set().
| static Config::get | ( | $ | key, | |
| $ | default = null | |||
| ) | [static] |
Fetch data from registry
| string | $key key name |
Definition at line 45 of file config.php.
Referenced by RemoteRequest::__construct(), DB::connect(), Options::get_all_options(), Session::init(), DatabaseConnection::load_tables(), and InstallHandler::upgrade_db().
| static Config::set | ( | $ | key, | |
| $ | val | |||
| ) | [static] |
Set data in registry
Note: arrays become objects for easy fetching
| string | $key key name | |
| mixed | $val value to store |
Definition at line 62 of file config.php.
Referenced by InstallHandler::act_begin_install(), InstallHandler::check_mysql(), and InstallHandler::check_pgsql().
Config::$registry = array() [static, protected] |
Registry of configuration data
Definition at line 19 of file config.php.
1.7.1