MediaWiki  1.29.2
MultiConfig Class Reference

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

Inheritance diagram for MultiConfig:
Collaboration diagram for MultiConfig:

Public Member Functions

 __construct (array $configs)
 
 get ( $name)
 
 has ( $name)
 

Private Attributes

Config[] $configs
 Array of Config objects to use Order matters, the Config objects will be checked in order to see whether they have the requested setting. More...
 

Detailed Description

Provides a fallback sequence for Config objects.

Since
1.24
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

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.

References $configs.

Member Function Documentation

◆ get()

MultiConfig::get (   $name)
See also
Config::get

Implements Config.

Definition at line 50 of file MultiConfig.php.

References $name, as, and Config\get().

◆ has()

MultiConfig::has (   $name)
See also
Config::has

Implements Config.

Definition at line 63 of file MultiConfig.php.

References $name, and as.

Member Data Documentation

◆ $configs

Config [] MultiConfig::$configs
private

Array of Config objects to use Order matters, the Config objects will be checked in order to see whether they have the requested setting.

Definition at line 38 of file MultiConfig.php.

Referenced by __construct().


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