MediaWiki REL1_40
MediaWiki\Settings\Config\MergeStrategy Class Reference

Public Member Functions

 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.
 

Static Public Member Functions

static newFromName (string $name)
 

Detailed Description

Definition at line 8 of file MergeStrategy.php.

Member Function Documentation

◆ getName()

MediaWiki\Settings\Config\MergeStrategy::getName ( )
Returns
string

Definition at line 63 of file MergeStrategy.php.

◆ 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
Parameters
string$name
Returns
static

Definition at line 44 of file MergeStrategy.php.

◆ 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: