MediaWiki master
MediaWiki\Config\GlobalVarConfig Class Reference

Accesses configuration settings from $GLOBALS. More...

Inherits MediaWiki\Config\Config.

Collaboration diagram for MediaWiki\Config\GlobalVarConfig:

Public Member Functions

 __construct ( $prefix='wg')
 
 get ( $name)
 Get a configuration variable such as "Sitename" or "UploadMaintenance.".
Parameters
string$nameName of configuration option
Returns
mixed Value configured
Exceptions
ConfigException

 
 has ( $name)
 Check whether a configuration option is set for the given name.
Parameters
string$nameName of configuration option
Returns
bool
Since
1.24

 

Static Public Member Functions

static newInstance ()
 Default builder function.
 

Detailed Description

Accesses configuration settings from $GLOBALS.

Stability: newable
Since
1.23

Definition at line 31 of file GlobalVarConfig.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Config\GlobalVarConfig::__construct ( $prefix = 'wg')
Stability: stable
to call
Parameters
string$prefix

Definition at line 52 of file GlobalVarConfig.php.

Member Function Documentation

◆ get()

MediaWiki\Config\GlobalVarConfig::get ( $name)

Get a configuration variable such as "Sitename" or "UploadMaintenance.".

Parameters
string$nameName of configuration option
Returns
mixed Value configured
Exceptions
ConfigException

Implements MediaWiki\Config\Config.

Definition at line 59 of file GlobalVarConfig.php.

References MediaWiki\Config\GlobalVarConfig\has().

◆ has()

MediaWiki\Config\GlobalVarConfig::has ( $name)

Check whether a configuration option is set for the given name.

Parameters
string$nameName of configuration option
Returns
bool
Since
1.24

Implements MediaWiki\Config\Config.

Definition at line 69 of file GlobalVarConfig.php.

Referenced by MediaWiki\Config\GlobalVarConfig\get().

◆ newInstance()

static MediaWiki\Config\GlobalVarConfig::newInstance ( )
static

Default builder function.

Returns
self

Definition at line 43 of file GlobalVarConfig.php.


The documentation for this class was generated from the following file: