|
MediaWiki REL1_39
|
A Config instance which stores all settings as a member variable. More...


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 30 of file HashConfig.php.
| HashConfig::__construct | ( | array | $settings = [] | ) |
| array | $settings | Any current settings to pre-load |
Definition at line 49 of file HashConfig.php.
| HashConfig::clear | ( | ) |
| HashConfig::get | ( | $name | ) |
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| string | $name | Name of configuration option |
| ConfigException |
Implements Config.
Definition at line 56 of file HashConfig.php.
References has().
| HashConfig::getIterator | ( | ) |
Returns a traversable view of the configuration variables in this Config object.
Implements MediaWiki\Config\IterableConfig.
Definition at line 86 of file HashConfig.php.
| HashConfig::getNames | ( | ) |
Returns the names of configuration variables in this Config object.
Implements MediaWiki\Config\IterableConfig.
Definition at line 95 of file HashConfig.php.
| HashConfig::has | ( | $name | ) |
Check whether a configuration option is set for the given name.
| string | $name | Name of configuration option |
Implements Config.
Definition at line 68 of file HashConfig.php.
Referenced by get().
|
static |
Definition at line 42 of file HashConfig.php.
| HashConfig::set | ( | $name, | |
| $value ) |
| string | $name | |
| mixed | $value |
Implements MutableConfig.
Definition at line 77 of file HashConfig.php.