MediaWiki
REL1_21
|
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() | |
__sleep () | |
__wakeup () | |
getArray () | |
merge ($other) | |
mergeArray ($data) | |
removeArray ($data) | |
removePair ($from) | |
replace ($subject) | |
setArray ($data) | |
Set the whole replacement array at once. | |
setPair ($from, $to) | |
Set an element of the replacement array. | |
Public Attributes | |
$data = false | |
$fss = false |
Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource.
Definition at line 366 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 375 of file StringUtils.php.
Definition at line 386 of file StringUtils.php.
ReplacementArray::merge | ( | $ | other | ) |
ReplacementArray::mergeArray | ( | $ | data | ) |
ReplacementArray::removeArray | ( | $ | data | ) |
$data | array |
Definition at line 442 of file StringUtils.php.
References $data, as, and removePair().
ReplacementArray::removePair | ( | $ | from | ) |
$from | string |
Definition at line 434 of file StringUtils.php.
References data.
Referenced by removeArray().
ReplacementArray::replace | ( | $ | subject | ) |
$subject | string |
Definition at line 453 of file StringUtils.php.
References $result, data, wfProfileIn(), and wfProfileOut().
ReplacementArray::setArray | ( | $ | data | ) |
Set the whole replacement array at once.
Definition at line 393 of file StringUtils.php.
ReplacementArray::setPair | ( | $ | from, |
$ | to | ||
) |
Set an element of the replacement array.
$from | string |
$to | string |
Definition at line 410 of file StringUtils.php.
References data.
Definition at line 367 of file StringUtils.php.
Referenced by __construct(), mergeArray(), removeArray(), and setArray().
ReplacementArray::$fss = false |
Definition at line 368 of file StringUtils.php.