MediaWiki master
|
A Config instance which stores all settings as a member variable. More...
Inherits MediaWiki\Config\Config, MediaWiki\Config\MutableConfig, and MediaWiki\Config\IterableConfig.
Public Member Functions | ||||||
__construct (array $settings=[]) | ||||||
clear () | ||||||
Clears all config variables. | ||||||
get ( $name) | ||||||
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| ||||||
getIterator () | ||||||
Returns a traversable view of the configuration variables in this Config object.
| ||||||
getNames () | ||||||
Returns the names of configuration variables in this Config object.
| ||||||
has ( $name) | ||||||
Check whether a configuration option is set for the given name.
| ||||||
set ( $name, $value) | ||||||
Static Public Member Functions | |
static | newInstance () |
A Config instance which stores all settings as a member variable.
Definition at line 33 of file HashConfig.php.
MediaWiki\Config\HashConfig::__construct | ( | array | $settings = [] | ) |
array | $settings | Any current settings to pre-load |
Definition at line 52 of file HashConfig.php.
MediaWiki\Config\HashConfig::clear | ( | ) |
MediaWiki\Config\HashConfig::get | ( | $name | ) |
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
string | $name | Name of configuration option |
ConfigException |
Implements MediaWiki\Config\Config.
Definition at line 59 of file HashConfig.php.
References MediaWiki\Config\HashConfig\has().
MediaWiki\Config\HashConfig::getIterator | ( | ) |
Returns a traversable view of the configuration variables in this Config object.
Implements MediaWiki\Config\IterableConfig.
Definition at line 89 of file HashConfig.php.
MediaWiki\Config\HashConfig::getNames | ( | ) |
Returns the names of configuration variables in this Config object.
Implements MediaWiki\Config\IterableConfig.
Definition at line 98 of file HashConfig.php.
MediaWiki\Config\HashConfig::has | ( | $name | ) |
Check whether a configuration option is set for the given name.
string | $name | Name of configuration option |
Implements MediaWiki\Config\Config.
Definition at line 71 of file HashConfig.php.
Referenced by MediaWiki\Config\HashConfig\get().
|
static |
Definition at line 45 of file HashConfig.php.
MediaWiki\Config\HashConfig::set | ( | $name, | |
$value ) |
string | $name | |
mixed | $value |
Implements MediaWiki\Config\MutableConfig.
Definition at line 80 of file HashConfig.php.