|
| getName () |
|
| merge (array $destination, array $source) |
| Merge $source into $destination.
|
|
| reverse () |
| Create a reversed merge strategy, which will merge $destination into $source instead of $source into $destination.
|
|
Definition at line 8 of file MergeStrategy.php.
◆ getName()
MediaWiki\Settings\Config\MergeStrategy::getName |
( |
| ) |
|
◆ merge()
MediaWiki\Settings\Config\MergeStrategy::merge |
( |
array | $destination, |
|
|
array | $source ) |
Merge $source into $destination.
- Note
- For all merge strategies except self::ARRAY_MERGE_RECURSIVE, for the values that have the same key, the value from $source will override the value in the $destination.
- Parameters
-
array | $destination | |
array | $source | |
- Returns
- array
Definition at line 67 of file MergeStrategy.php.
References $source.
◆ newFromName()
static MediaWiki\Settings\Config\MergeStrategy::newFromName |
( |
string | $name | ) |
|
|
static |
◆ reverse()
MediaWiki\Settings\Config\MergeStrategy::reverse |
( |
| ) |
|
Create a reversed merge strategy, which will merge $destination into $source instead of $source into $destination.
- See also
- self::merge
- Returns
- MergeStrategy
Definition at line 100 of file MergeStrategy.php.
◆ ARRAY_MERGE
const MediaWiki\Settings\Config\MergeStrategy::ARRAY_MERGE = 'array_merge' |
◆ ARRAY_MERGE_RECURSIVE
const MediaWiki\Settings\Config\MergeStrategy::ARRAY_MERGE_RECURSIVE = 'array_merge_recursive' |
◆ ARRAY_PLUS
const MediaWiki\Settings\Config\MergeStrategy::ARRAY_PLUS = 'array_plus' |
◆ ARRAY_PLUS_2D
const MediaWiki\Settings\Config\MergeStrategy::ARRAY_PLUS_2D = 'array_plus_2d' |
◆ ARRAY_REPLACE_RECURSIVE
const MediaWiki\Settings\Config\MergeStrategy::ARRAY_REPLACE_RECURSIVE = 'array_replace_recursive' |
◆ REPLACE
const MediaWiki\Settings\Config\MergeStrategy::REPLACE = 'replace' |
The documentation for this class was generated from the following file: