MediaWiki REL1_32
|
Accesses configuration settings from $GLOBALS. More...
Public Member Functions | |
__construct ( $prefix='wg') | |
get ( $name) | |
@inheritDoc | |
has ( $name) | |
@inheritDoc | |
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. | |
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 44 of file GlobalVarConfig.php.
GlobalVarConfig::get | ( | $name | ) |
@inheritDoc
Implements Config.
Definition at line 51 of file GlobalVarConfig.php.
References 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 |
Definition at line 72 of file GlobalVarConfig.php.
References $GLOBALS, and $name.
Referenced by get().
GlobalVarConfig::has | ( | $name | ) |
@inheritDoc
Implements Config.
Definition at line 61 of file GlobalVarConfig.php.
References hasWithPrefix().
|
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 83 of file GlobalVarConfig.php.
References $GLOBALS, and $name.
Referenced by has().
|
static |
|
private |
Prefix to use for configuration variables.
Definition at line 34 of file GlobalVarConfig.php.