|
| 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 78 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 111 of file MergeStrategy.php.
The documentation for this class was generated from the following file: