MediaWiki
1.23.2
|
Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource. More...
Public Member Functions | |
__construct ( $data=array()) | |
Create an object with the specified replacement array The array should have the same form as the replacement array for strtr() More... | |
__sleep () | |
__wakeup () | |
getArray () | |
merge ( $other) | |
mergeArray ( $data) | |
removeArray ( $data) | |
removePair ( $from) | |
replace ( $subject) | |
setArray ( $data) | |
Set the whole replacement array at once. More... | |
setPair ( $from, $to) | |
Set an element of the replacement array. More... | |
Private Attributes | |
$data = false | |
$fss = false | |
Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource.
Definition at line 411 of file StringUtils.php.
ReplacementArray::__construct | ( | $data = array() | ) |
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 420 of file StringUtils.php.
ReplacementArray::__sleep | ( | ) |
ReplacementArray::__wakeup | ( | ) |
Definition at line 431 of file StringUtils.php.
ReplacementArray::getArray | ( | ) |
ReplacementArray::merge | ( | $other | ) |
ReplacementArray::mergeArray | ( | $data | ) |
ReplacementArray::removeArray | ( | $data | ) |
array | $data |
Definition at line 488 of file StringUtils.php.
References $data, $from, as, and removePair().
ReplacementArray::removePair | ( | $from | ) |
ReplacementArray::replace | ( | $subject | ) |
string | $subject |
Definition at line 499 of file StringUtils.php.
References data, wfProfileIn(), and wfProfileOut().
ReplacementArray::setArray | ( | $data | ) |
Set the whole replacement array at once.
array | $data |
Definition at line 439 of file StringUtils.php.
ReplacementArray::setPair | ( | $from, | |
$to | |||
) |
Set an element of the replacement array.
string | $from | |
string | $to |
Definition at line 456 of file StringUtils.php.
|
private |
Definition at line 412 of file StringUtils.php.
Referenced by __construct(), getArray(), mergeArray(), removeArray(), and setArray().
|
private |
Definition at line 413 of file StringUtils.php.