MediaWiki
1.30.2
|
Public Member Functions | |
__construct ( $prefix=null) | |
addGeneral ( $marker, $value) | |
addNoWiki ( $marker, $value) | |
Add a nowiki strip item. More... | |
getSubState ( $text) | |
Get a StripState object which is sufficient to unstrip the given text. More... | |
killMarkers ( $text) | |
Remove any strip markers found in the given text. More... | |
merge ( $otherState, $texts) | |
Merge another StripState object into this one. More... | |
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 = null | ) |
string | null | $prefix |
Definition at line 44 of file StripState.php.
References $prefix, data, and wfDeprecated().
StripState::addGeneral | ( | $marker, | |
$value | |||
) |
string | $marker | |
string | $value |
Definition at line 70 of file StripState.php.
|
protected |
MWException |
string | $type | |
string | $marker | |
string | $value |
Definition at line 80 of file StripState.php.
References $type, $value, and data.
Referenced by addGeneral(), and addNoWiki().
StripState::addNoWiki | ( | $marker, | |
$value | |||
) |
Add a nowiki strip item.
string | $marker | |
string | $value |
Definition at line 62 of file StripState.php.
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.
string | $text |
Definition at line 173 of file StripState.php.
References data.
StripState::killMarkers | ( | $text | ) |
Remove any strip markers found in the given text.
string | $text | Input string |
Definition at line 239 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.
StripState | $otherState | |
array | $texts |
Definition at line 209 of file StripState.php.
References $type, $value, as, data, and wfRandomString().
|
protected |
StripState::unstripBoth | ( | $text | ) |
string | $text |
Definition at line 108 of file StripState.php.
References unstripType().
|
protected |
array | $m |
Definition at line 136 of file StripState.php.
References $ret, $tempType, $value, data, unstripType(), and wfMessage().
StripState::unstripGeneral | ( | $text | ) |
string | $text |
Definition at line 92 of file StripState.php.
References unstripType().
StripState::unstripNoWiki | ( | $text | ) |
string | $text |
Definition at line 100 of file StripState.php.
References unstripType().
|
protected |
string | $type | |
string | $text |
Definition at line 119 of file StripState.php.
References $tempType, $type, captcha-old\count, and data.
Referenced by unstripBoth(), unstripCallback(), unstripGeneral(), and unstripNoWiki().
|
protected |
Definition at line 34 of file StripState.php.
|
protected |
Definition at line 30 of file StripState.php.
|
protected |
Definition at line 29 of file StripState.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file StripState.php.
|
protected |
Definition at line 31 of file StripState.php.
StripState::$tempMergePrefix |
Definition at line 33 of file StripState.php.
|
protected |
Definition at line 33 of file StripState.php.
Referenced by unstripCallback(), and unstripType().
const StripState::UNSTRIP_RECURSION_LIMIT = 20 |
Definition at line 37 of file StripState.php.