MediaWiki fundraising/REL1_35
|
Accesses configuration settings from $GLOBALS. More...
Public Member Functions | ||||||
__construct ( $prefix='wg') | ||||||
Stable to call. | ||||||
get ( $name) | ||||||
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| ||||||
has ( $name) | ||||||
Check whether a configuration option is set for the given name.
| ||||||
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.
@newable
Definition at line 29 of file GlobalVarConfig.php.
GlobalVarConfig::__construct | ( | $prefix = 'wg' | ) |
GlobalVarConfig::get | ( | $name | ) |
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
string | $name | Name of configuration option |
ConfigException |
Implements Config.
Definition at line 57 of file GlobalVarConfig.php.
References getWithPrefix(), and has().
|
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 78 of file GlobalVarConfig.php.
References $GLOBALS.
Referenced by get().
GlobalVarConfig::has | ( | $name | ) |
Check whether a configuration option is set for the given name.
string | $name | Name of configuration option |
Implements Config.
Definition at line 67 of file GlobalVarConfig.php.
References hasWithPrefix().
Referenced by get().
|
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 89 of file GlobalVarConfig.php.
References $GLOBALS.
Referenced by has().
|
static |
Default builder function.
Definition at line 41 of file GlobalVarConfig.php.
Referenced by MediaWiki\Skins\Vector\Tests\Integration\VectorTemplateTest\provideVectorTemplateObject().
|
private |
Prefix to use for configuration variables.
Definition at line 35 of file GlobalVarConfig.php.