MediaWiki master
|
Wrapper around strtr() that holds replacements. More...
Public Member Functions | |
__construct (array $data=[]) | |
Create an object with the specified replacement array The array should have the same form as the replacement array for strtr() | |
__sleep () | |
getArray () | |
merge (ReplacementArray $other) | |
mergeArray ( $data) | |
removeArray ( $data) | |
removePair ( $from) | |
replace ( $subject) | |
setArray (array $data) | |
Set the whole replacement array at once. | |
setPair ( $from, $to) | |
Set an element of the replacement array. | |
Wrapper around strtr() that holds replacements.
Definition at line 26 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::__construct | ( | array | $data = [] | ) |
Create an object with the specified replacement array The array should have the same form as the replacement array for strtr()
array | $data |
Definition at line 34 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::__sleep | ( | ) |
Definition at line 41 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::getArray | ( | ) |
Definition at line 56 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::merge | ( | ReplacementArray | $other | ) |
ReplacementArray | $other |
Definition at line 79 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::mergeArray | ( | $data | ) |
array | $data |
Definition at line 72 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::removeArray | ( | $data | ) |
array | $data |
Definition at line 93 of file ReplacementArray.php.
References MediaWiki\Language\ReplacementArray\removePair().
MediaWiki\Language\ReplacementArray::removePair | ( | $from | ) |
string | $from |
Definition at line 86 of file ReplacementArray.php.
Referenced by MediaWiki\Language\ReplacementArray\removeArray().
MediaWiki\Language\ReplacementArray::replace | ( | $subject | ) |
MediaWiki\Language\ReplacementArray::setArray | ( | array | $data | ) |
Set the whole replacement array at once.
array | $data |
Definition at line 49 of file ReplacementArray.php.
MediaWiki\Language\ReplacementArray::setPair | ( | $from, | |
$to ) |
Set an element of the replacement array.
string | $from | |
string | $to |
Definition at line 65 of file ReplacementArray.php.