|
MediaWiki
REL1_23
|
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 | |
| const | UNSTRIP_RECURSION_LIMIT = 20 |
Protected Member Functions | |
| addItem ($type, $marker, $value) | |
| mergeCallback ($m) | |
| unstripCallback ($m) | |
| unstripType ($type, $text) | |
Protected Attributes | |
| $circularRefGuard | |
| $data | |
| $prefix | |
| $recursionLevel = 0 | |
| $regex | |
| $tempType | |
Definition at line 28 of file StripState.php.
| StripState::__construct | ( | $ | prefix | ) |
| $prefix | string |
Definition at line 42 of file StripState.php.
References $prefix, array(), data, and Parser\MARKER_SUFFIX.
| StripState::addGeneral | ( | $ | marker, |
| $ | value | ||
| ) |
| $marker | |
| $value |
Definition at line 65 of file StripState.php.
| StripState::addItem | ( | $ | type, |
| $ | marker, | ||
| $ | value | ||
| ) | [protected] |
| MWException |
| $type | |
| $marker | |
| $value |
Definition at line 75 of file StripState.php.
Referenced by addGeneral(), and addNoWiki().
| StripState::addNoWiki | ( | $ | marker, |
| $ | value | ||
| ) |
| 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 166 of file StripState.php.
References $key, data, and Parser\MARKER_SUFFIX.
| StripState::killMarkers | ( | $ | text | ) |
Remove any strip markers found in the given text.
| $text | Input string |
Definition at line 232 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 202 of file StripState.php.
References $key, $value, array(), as, data, and Parser\getRandomString().
| StripState::mergeCallback | ( | $ | m | ) | [protected] |
| $m |
Definition at line 221 of file StripState.php.
References $key, and Parser\MARKER_SUFFIX.
| StripState::unstripBoth | ( | $ | text | ) |
| $text |
Definition at line 103 of file StripState.php.
References unstripType().
| StripState::unstripCallback | ( | $ | m | ) | [protected] |
| $m | array |
Definition at line 133 of file StripState.php.
References $ret, data, unstripType(), and wfMessage().
| StripState::unstripGeneral | ( | $ | text | ) |
| $text |
Definition at line 87 of file StripState.php.
References unstripType().
| StripState::unstripNoWiki | ( | $ | text | ) |
| $text |
Definition at line 95 of file StripState.php.
References unstripType().
| StripState::unstripType | ( | $ | type, |
| $ | text | ||
| ) | [protected] |
| $type | |
| $text |
Definition at line 114 of file StripState.php.
References array(), data, wfProfileIn(), and wfProfileOut().
Referenced by unstripBoth(), unstripCallback(), unstripGeneral(), and unstripNoWiki().
StripState::$circularRefGuard [protected] |
Definition at line 34 of file StripState.php.
StripState::$data [protected] |
Definition at line 30 of file StripState.php.
StripState::$prefix [protected] |
Definition at line 29 of file StripState.php.
Referenced by __construct().
StripState::$recursionLevel = 0 [protected] |
Definition at line 35 of file StripState.php.
StripState::$regex [protected] |
Definition at line 31 of file StripState.php.
| StripState::$tempMergePrefix |
Definition at line 33 of file StripState.php.
StripState::$tempType [protected] |
Definition at line 33 of file StripState.php.
| const StripState::UNSTRIP_RECURSION_LIMIT = 20 |
Definition at line 37 of file StripState.php.