|
MediaWiki
1.23.0
|
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. More... | |
Protected Member Functions | |
| getWithPrefix ( $prefix, $name) | |
| Get a variable with a given prefix, if not the defaults. More... | |
| setWithPrefix ( $prefix, $name, $value) | |
| Get a variable with a given prefix, if not the defaults. More... | |
Private Attributes | |
| string | $prefix |
| Prefix to use for configuration variables. More... | |
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 | ) |
Implements Config.
Definition at line 50 of file GlobalVarConfig.php.
References $name, and getWithPrefix().
|
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.
References $GLOBALS, $name, and $prefix.
Referenced by get().
|
static |
| GlobalVarConfig::set | ( | $name, | |
| $value | |||
| ) |
Implements Config.
Definition at line 57 of file GlobalVarConfig.php.
References $name, $value, and setWithPrefix().
|
protected |
|
private |
Prefix to use for configuration variables.
Definition at line 33 of file GlobalVarConfig.php.
Referenced by __construct(), getWithPrefix(), and setWithPrefix().