MediaWiki master
MediaWiki\Config\Config Interface Reference

Interface for configuration instances. More...

Inherited by MediaWiki\Config\EtcdConfig, MediaWiki\Config\GlobalVarConfig, MediaWiki\Config\HashConfig, MediaWiki\Config\IterableConfig, and MediaWiki\Config\MultiConfig.

Public Member Functions

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

Detailed Description

Interface for configuration instances.

Stability: stable
to implement
Since
1.23

Definition at line 32 of file Config.php.

Member Function Documentation

◆ get()

◆ has()

MediaWiki\Config\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 MediaWiki\Config\EtcdConfig, MediaWiki\Config\GlobalVarConfig, MediaWiki\Config\HashConfig, and MediaWiki\Config\MultiConfig.

Referenced by MediaWiki\Settings\Config\ConfigSchemaAggregator\validateConfig().


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