MediaWiki REL1_40
MultiConfig Class Reference

Provides a fallback sequence for Config objects. More...

Inherits Config.

Collaboration diagram for MultiConfig:

Public Member Functions

 __construct (array $configs)
 
 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

 

Detailed Description

Provides a fallback sequence for Config objects.

Since
1.24

Definition at line 28 of file MultiConfig.php.

Constructor & Destructor Documentation

◆ __construct()

MultiConfig::__construct ( array $configs)
Parameters
Config[]$configs

Definition at line 43 of file MultiConfig.php.

Member Function Documentation

◆ get()

MultiConfig::get ( $name)

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

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

Implements Config.

Definition at line 50 of file MultiConfig.php.

◆ has()

MultiConfig::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 Config.

Definition at line 63 of file MultiConfig.php.


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