MediaWiki
REL1_19
|
Public Member Functions | |
__construct ($prefix) | |
addGeneral ($marker, $value) | |
addNoWiki ($marker, $value) | |
Add a nowiki strip item. | |
getSubState ($text) | |
Get a StripState object which is sufficient to unstrip the given text. | |
killMarkers ($text) | |
Remove any strip markers found in the given text. | |
merge ($otherState, $texts) | |
Merge another StripState object into this one. | |
unstripBoth ($text) | |
unstripGeneral ($text) | |
unstripNoWiki ($text) | |
Public Attributes | |
$tempMergePrefix | |
Protected Member Functions | |
addItem ($type, $marker, $value) | |
mergeCallback ($m) | |
unstripCallback ($m) | |
unstripType ($type, $text) | |
Protected Attributes | |
$data | |
$prefix | |
$regex | |
$tempType |
Definition at line 7 of file StripState.php.
StripState::__construct | ( | $ | prefix | ) |
$prefix | string |
Definition at line 17 of file StripState.php.
References $prefix, and Parser\MARKER_SUFFIX.
StripState::addGeneral | ( | $ | marker, |
$ | value | ||
) |
$marker | |
$value |
Definition at line 39 of file StripState.php.
References addItem().
StripState::addItem | ( | $ | type, |
$ | marker, | ||
$ | value | ||
) | [protected] |
MWException |
$type | |
$marker | |
$value |
Definition at line 49 of file StripState.php.
Referenced by addGeneral(), and addNoWiki().
StripState::addNoWiki | ( | $ | marker, |
$ | value | ||
) |
Add a nowiki strip item.
$marker | |
$value |
Definition at line 31 of file StripState.php.
References addItem().
StripState::getSubState | ( | $ | text | ) |
Get a StripState object which is sufficient to unstrip the given text.
It will contain the minimum subset of strip items necessary.
$text | string |
Definition at line 125 of file StripState.php.
References Parser\MARKER_SUFFIX.
StripState::killMarkers | ( | $ | text | ) |
Remove any strip markers found in the given text.
$text | Input string |
Definition at line 191 of file StripState.php.
StripState::merge | ( | $ | otherState, |
$ | texts | ||
) |
Merge another StripState object into this one.
The strip marker keys will not be preserved. The strings in the $texts array will have their strip markers rewritten, the resulting array of strings will be returned.
$otherState | StripState |
$texts | Array |
Definition at line 161 of file StripState.php.
References Parser\getRandomString().
StripState::mergeCallback | ( | $ | m | ) | [protected] |
$m |
Definition at line 180 of file StripState.php.
References Parser\MARKER_SUFFIX.
StripState::unstripBoth | ( | $ | text | ) |
$text |
Definition at line 77 of file StripState.php.
References unstripType().
StripState::unstripCallback | ( | $ | m | ) | [protected] |
StripState::unstripGeneral | ( | $ | text | ) |
$text |
Definition at line 61 of file StripState.php.
References unstripType().
StripState::unstripNoWiki | ( | $ | text | ) |
$text |
Definition at line 69 of file StripState.php.
References unstripType().
StripState::unstripType | ( | $ | type, |
$ | text | ||
) | [protected] |
$type | |
$text |
Definition at line 88 of file StripState.php.
References wfProfileIn(), and wfProfileOut().
Referenced by unstripBoth(), unstripGeneral(), and unstripNoWiki().
StripState::$data [protected] |
Definition at line 9 of file StripState.php.
StripState::$prefix [protected] |
Definition at line 8 of file StripState.php.
Referenced by __construct().
StripState::$regex [protected] |
Definition at line 10 of file StripState.php.
StripState::$tempMergePrefix |
Definition at line 12 of file StripState.php.
StripState::$tempType [protected] |
Definition at line 12 of file StripState.php.