|
MediaWiki
REL1_23
|
Accesses configuration settings from $GLOBALS. More...


Public Member Functions | |
| __construct ($prefix= 'wg') | |
| get ($name) | |
| set ($name, $value) | |
Static Public Member Functions | |
| static | newInstance () |
| Default builder function. | |
Protected Member Functions | |
| getWithPrefix ($prefix, $name) | |
| Get a variable with a given prefix, if not the defaults. | |
| setWithPrefix ($prefix, $name, $value) | |
| Get a variable with a given prefix, if not the defaults. | |
Private Attributes | |
| string | $prefix |
| Prefix to use for configuration variables. | |
Accesses configuration settings from $GLOBALS.
Definition at line 28 of file GlobalVarConfig.php.
| GlobalVarConfig::__construct | ( | $ | prefix = 'wg' | ) |
Definition at line 43 of file GlobalVarConfig.php.
References $prefix.
| GlobalVarConfig::get | ( | $ | name | ) |
| GlobalVarConfig::getWithPrefix | ( | $ | prefix, |
| $ | name | ||
| ) | [protected] |
Get a variable with a given prefix, if not the defaults.
| string | $prefix | Prefix to use on the variable, if one. |
| string | $name | Variable name without prefix |
| ConfigException |
Definition at line 69 of file GlobalVarConfig.php.
| static GlobalVarConfig::newInstance | ( | ) | [static] |
Default builder function.
Definition at line 39 of file GlobalVarConfig.php.
| GlobalVarConfig::set | ( | $ | name, |
| $ | value | ||
| ) |
| GlobalVarConfig::setWithPrefix | ( | $ | prefix, |
| $ | name, | ||
| $ | value | ||
| ) | [protected] |
Get a variable with a given prefix, if not the defaults.
| string | $prefix | Prefix to use on the variable |
| string | $name | Variable name without prefix |
| mixed | $value | value to set |
Definition at line 84 of file GlobalVarConfig.php.
string GlobalVarConfig::$prefix [private] |
Prefix to use for configuration variables.
Definition at line 33 of file GlobalVarConfig.php.
Referenced by __construct().