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


Public Member Functions | |
| __construct ($prefix= 'wg') | |
| get ($name) | |
| has ($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. | |
| hasWithPrefix ($prefix, $name) | |
| Check if a variable with a given prefix is set. | |
| 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 |
Definition at line 80 of file GlobalVarConfig.php.
| GlobalVarConfig::has | ( | $ | name | ) |
| GlobalVarConfig::hasWithPrefix | ( | $ | prefix, |
| $ | name | ||
| ) | [protected] |
Check if a variable with a given prefix is set.
| string | $prefix | Prefix to use on the variable |
| string | $name | Variable name without prefix |
Definition at line 91 of file GlobalVarConfig.php.
| static GlobalVarConfig::newInstance | ( | ) | [static] |
Default builder function.
Definition at line 39 of file GlobalVarConfig.php.
Referenced by GlobalVarConfigTest\testNewInstance().
| GlobalVarConfig::set | ( | $ | name, |
| $ | value | ||
| ) |
Definition at line 68 of file GlobalVarConfig.php.
| 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 104 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().