MediaWiki
1.32.0
|
Accesses configuration settings from $GLOBALS. More...
Public Member Functions | |
__construct ( $prefix='wg') | |
get ( $name) | |
@inheritDoc More... | |
has ( $name) | |
@inheritDoc More... | |
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... | |
hasWithPrefix ( $prefix, $name) | |
Check if a variable with a given prefix is set. 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 44 of file GlobalVarConfig.php.
References $prefix.
GlobalVarConfig::get | ( | $name | ) |
@inheritDoc
Implements Config.
Definition at line 51 of file GlobalVarConfig.php.
References $name, getWithPrefix(), and has().
|
protected |
GlobalVarConfig::has | ( | $name | ) |
@inheritDoc
Implements Config.
Definition at line 61 of file GlobalVarConfig.php.
References $name, and hasWithPrefix().
Referenced by get().
|
protected |
|
static |
Default builder function.
Definition at line 40 of file GlobalVarConfig.php.
Referenced by GlobalVarConfigTest\testNewInstance(), and ConfigFactoryTest\testRegisterInstance().
|
private |
Prefix to use for configuration variables.
Definition at line 34 of file GlobalVarConfig.php.
Referenced by __construct(), getWithPrefix(), and hasWithPrefix().