MediaWiki
1.34.0
|
A Config instance which stores all settings as a member variable. More...
Public Member Functions | ||||||
__construct (array $settings=[]) | ||||||
get ( $name) | ||||||
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
| ||||||
has ( $name) | ||||||
Check whether a configuration option is set for the given name.
| ||||||
set ( $name, $value) | ||||||
Static Public Member Functions | |
static | newInstance () |
Private Attributes | |
array | $settings |
Array of config settings. More... | |
A Config instance which stores all settings as a member variable.
Definition at line 28 of file HashConfig.php.
HashConfig::__construct | ( | array | $settings = [] | ) |
array | $settings | Any current settings to pre-load |
Definition at line 47 of file HashConfig.php.
References $settings.
HashConfig::get | ( | $name | ) |
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
string | $name | Name of configuration option |
ConfigException |
Implements Config.
Definition at line 54 of file HashConfig.php.
References has().
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 66 of file HashConfig.php.
Referenced by get().
|
static |
Definition at line 40 of file HashConfig.php.
HashConfig::set | ( | $name, | |
$value | |||
) |
string | $name | |
mixed | $value |
Implements MutableConfig.
Definition at line 75 of file HashConfig.php.
|
private |
Array of config settings.
Definition at line 35 of file HashConfig.php.
Referenced by __construct().