MediaWiki fundraising/REL1_35
Config Interface Reference

Interface for configuration instances. More...

Inheritance diagram for Config:

Public Member Functions

 get ( $name)
 Get a configuration variable such as "Sitename" or "UploadMaintenance.".
 
 get ( $name)
 Get a configuration variable such as "Sitename" or "UploadMaintenance.".
 
 has ( $name)
 Check whether a configuration option is set for the given name.
 
 has ( $name)
 Check whether a configuration option is set for the given name.
 

Detailed Description

Interface for configuration instances.

TODO: Deleteme when removing WmfFramework. This shim is needed under drupal when running.

Stable to implement

Since
1.23

Definition at line 29 of file Config.php.

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

Config::get ( $name)

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

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

Implemented in DrupalFakeMwConfig, EtcdConfig, GlobalVarConfig, HashConfig, and MultiConfig.

◆ has() [1/2]

Config::has ( $name)

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

Parameters
string$nameName of configuration option
Returns
bool
Since
1.24

Implemented in DrupalFakeMwConfig, EtcdConfig, GlobalVarConfig, HashConfig, and MultiConfig.

◆ has() [2/2]

Config::has ( $name)

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

Parameters
string$nameName of configuration option
Returns
bool
Since
1.24

Implemented in DrupalFakeMwConfig, EtcdConfig, GlobalVarConfig, HashConfig, and MultiConfig.


The documentation for this interface was generated from the following files: