|
MediaWiki master
|
Accesses configuration settings from $GLOBALS. More...
Inherits MediaWiki\Config\Config.

Public Member Functions | ||||||
| __construct (private readonly string $prefix='wg',) | ||||||
| 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. | |
Accesses configuration settings from $GLOBALS.
Definition at line 19 of file GlobalVarConfig.php.
| MediaWiki\Config\GlobalVarConfig::__construct | ( | private readonly string | $prefix = 'wg' | ) |
| string | $prefix | Prefix to use for configuration variables |
Definition at line 34 of file GlobalVarConfig.php.
| MediaWiki\Config\GlobalVarConfig::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 42 of file GlobalVarConfig.php.
| MediaWiki\Config\GlobalVarConfig::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 63 of file GlobalVarConfig.php.
|
static |