MediaWiki REL1_40
|
Inherits MediaWiki\Settings\Config\ConfigBuilder.
Inherited by MediaWiki\Settings\Config\ArrayConfigBuilder, and MediaWiki\Settings\Config\GlobalConfigBuilder.
Public Member Functions | ||||||||||
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.
| ||||||||||
setMulti (array $values, array $mergeStrategies=[]) | ||||||||||
Set all values in the array.
| ||||||||||
setMultiDefault (array $defaults, array $mergeStrategies) | ||||||||||
Set defaults in a batch.
| ||||||||||
Public Member Functions inherited from MediaWiki\Settings\Config\ConfigBuilder | ||||||||||
build () | ||||||||||
Build the resulting Config object. | ||||||||||
get (string $key) | ||||||||||
Get the current value for $key. | ||||||||||
Protected Member Functions | |
has (string $key) | |
update (string $key, $value) | |
Definition at line 5 of file ConfigBuilderBase.php.
|
abstractprotected |
Reimplemented in MediaWiki\Settings\Config\ArrayConfigBuilder, and MediaWiki\Settings\Config\GlobalConfigBuilder.
MediaWiki\Settings\Config\ConfigBuilderBase::set | ( | string | $key, |
$newValue, | |||
MergeStrategy | $mergeStrategy = null ) |
Set the configuration $key to $value.
string | $key | |
mixed | $value | |
MergeStrategy | null | $mergeStrategy | strategy for merging array config values. |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 14 of file ConfigBuilderBase.php.
MediaWiki\Settings\Config\ConfigBuilderBase::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.
string | $key | |
mixed | $defaultValue | |
MergeStrategy | null | $mergeStrategy | strategy for merging array config values. |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 42 of file ConfigBuilderBase.php.
MediaWiki\Settings\Config\ConfigBuilderBase::setMulti | ( | array | $values, |
array | $mergeStrategies = [] ) |
Set all values in the array.
array | $values | |
MergeStrategy[] | $mergeStrategies | The merge strategies indexed by config key |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Reimplemented in MediaWiki\Settings\Config\ArrayConfigBuilder, and MediaWiki\Settings\Config\GlobalConfigBuilder.
Definition at line 32 of file ConfigBuilderBase.php.
MediaWiki\Settings\Config\ConfigBuilderBase::setMultiDefault | ( | array | $defaults, |
array | $mergeStrategies ) |
Set defaults in a batch.
array | $defaults | The default values |
MergeStrategy[] | $mergeStrategies | The merge strategies indexed by config key |
SettingsBuilderException | if a merge strategy is not provided and the value is not an array. |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 65 of file ConfigBuilderBase.php.
|
abstractprotected |
Reimplemented in MediaWiki\Settings\Config\ArrayConfigBuilder, and MediaWiki\Settings\Config\GlobalConfigBuilder.