MediaWiki REL1_40
|
Inherits MediaWiki\Settings\Config\ConfigBuilderBase.
Public Member Functions | ||||||||||
__construct (string $prefix=self::DEFAULT_PREFIX) | ||||||||||
build () | ||||||||||
Build the resulting Config object. | ||||||||||
get (string $key) | ||||||||||
Get the current value for $key. | ||||||||||
setMulti (array $values, array $mergeStrategies=[]) | ||||||||||
Set all values in the array.
| ||||||||||
Public Member Functions inherited from MediaWiki\Settings\Config\ConfigBuilderBase | ||||||||||
set (string $key, $newValue, MergeStrategy $mergeStrategy=null) | ||||||||||
Set the configuration $key to $value.
| ||||||||||
setDefault (string $key, $defaultValue, MergeStrategy $mergeStrategy=null) | ||||||||||
Set the default for the configuration $key to $defaultValue.If the $key is already set, non-array $defaultValue will be ignored, for array $defaultValue the existing value will be merged into it as if the default was already there when the existing value was set.
| ||||||||||
setMultiDefault (array $defaults, array $mergeStrategies) | ||||||||||
Set defaults in a batch.
| ||||||||||
Protected Member Functions | |
has (string $key) | |
update (string $key, $value) | |
Definition at line 9 of file GlobalConfigBuilder.php.
MediaWiki\Settings\Config\GlobalConfigBuilder::__construct | ( | string | $prefix = self::DEFAULT_PREFIX | ) |
string | $prefix |
Definition at line 20 of file GlobalConfigBuilder.php.
MediaWiki\Settings\Config\GlobalConfigBuilder::build | ( | ) |
Build the resulting Config object.
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 71 of file GlobalConfigBuilder.php.
MediaWiki\Settings\Config\GlobalConfigBuilder::get | ( | string | $key | ) |
Get the current value for $key.
string | $key |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 33 of file GlobalConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 24 of file GlobalConfigBuilder.php.
MediaWiki\Settings\Config\GlobalConfigBuilder::setMulti | ( | array | $values, |
array | $mergeStrategies = [] ) |
Set all values in the array.
array | $values | |
MergeStrategy[] | $mergeStrategies | The merge strategies indexed by config key |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 43 of file GlobalConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 38 of file GlobalConfigBuilder.php.