MediaWiki  master
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.". More...
 
 has ( $name)
 Check whether a configuration option is set for the given name. More...
 

Detailed Description

Interface for configuration instances.

Stable to implement

Since
1.23

Definition at line 30 of file Config.php.

Member Function Documentation

◆ get()

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

Referenced by MediaWiki\Auth\Throttler\__construct(), ResourceLoader\__construct(), MediaWiki\Block\AbstractBlock\appliesToRight(), MediaWiki\Block\AbstractBlock\appliesToUsertalk(), MediaWiki\Preferences\SignatureValidator\checkLintErrors(), PopulateImageSha1\doDBUpdates(), MediaWiki\emitBufferedStatsdData(), MultiConfig\get(), ApiQueryUserInfo\getCentralUserInfo(), SpecialVersion\getCredits(), QueryPage\getDisabledQueryPages(), MediaWiki\Auth\UserDataAuthenticationRequest\getFieldInfo(), Installer\getInstallerConfig(), ApiUpload\getMinUploadChunkSize(), ResourceLoaderUserModule\getPages(), ResourceLoaderUserStylesModule\getPages(), ResourceLoaderWikiModule\getPages(), MediaWiki\Config\ConfigRepository\getValueOf(), PasswordFactory\init(), ContentSecurityPolicy\isNonceRequired(), ContentSecurityPolicy\makeCSPDirectives(), MediaWiki\MediaWikiServices\newInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest\newRandom(), MediaWiki\preOutputCommit(), MediaWiki\Block\AbstractBlock\prevents(), MediaWiki\Session\CookieSessionProvider\setConfig(), Maintenance\setLBFactoryTriggers(), MediaWiki\Block\DatabaseBlock\shouldTrackWithCookie(), OutputPage\transformResourcePath(), and MediaWiki\Preferences\SignatureValidator\validateSignature().

◆ has()

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


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