Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Modules\SettingsValueProvider Class Reference
+ Inheritance diagram for Wikibase\Lib\Modules\SettingsValueProvider:
+ Collaboration diagram for Wikibase\Lib\Modules\SettingsValueProvider:

Public Member Functions

 __construct (SettingsArray $settings, $jsSettingName, $phpSettingName)
 
 getKey ()
 
Returns
string Key for use in mw.config.

 
 getValue ()
 
Returns
mixed Non-complex value for use in mw.config.set, typically a string or (nested) array of strings.

 

Private Attributes

 $settings
 
 $jsSettingName
 
 $phpSettingName
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Modules\SettingsValueProvider::__construct ( SettingsArray $settings,
$jsSettingName,
$phpSettingName )
Parameters
SettingsArray$settings
string$jsSettingName
string$phpSettingName

Member Function Documentation

◆ getKey()

Wikibase\Lib\Modules\SettingsValueProvider::getKey ( )

Returns
string Key for use in mw.config.

Implements Wikibase\Lib\Modules\MediaWikiConfigValueProvider.

◆ getValue()

Wikibase\Lib\Modules\SettingsValueProvider::getValue ( )

Returns
mixed Non-complex value for use in mw.config.set, typically a string or (nested) array of strings.

Implements Wikibase\Lib\Modules\MediaWikiConfigValueProvider.

Member Data Documentation

◆ $jsSettingName

Wikibase\Lib\Modules\SettingsValueProvider::$jsSettingName
private

◆ $phpSettingName

Wikibase\Lib\Modules\SettingsValueProvider::$phpSettingName
private

◆ $settings

Wikibase\Lib\Modules\SettingsValueProvider::$settings
private

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