MediaWiki
master
|
Public Member Functions | |
__construct (Parser $parser=null, $options=[]) | |
addGeneral ( $marker, $value) | |
addNoWiki ( $marker, $value) | |
Add a nowiki strip item. More... | |
getLimitReport () | |
Get an array of parameters to pass to ParserOutput::setLimitReportData() More... | |
killMarkers ( $text) | |
Remove any strip markers found in the given text. More... | |
unstripBoth ( $text) | |
unstripGeneral ( $text) | |
unstripNoWiki ( $text) | |
Protected Member Functions | |
addItem ( $type, $marker, $value) | |
unstripType ( $type, $text) | |
Protected Attributes | |
$circularRefGuard | |
$data | |
$depth = 0 | |
$depthLimit = 20 | |
$expandSize = 0 | |
$highestDepth = 0 | |
$parser | |
$regex | |
$sizeLimit = 5000000 | |
Private Member Functions | |
getLimitationWarning ( $type, $max='') | |
Get warning HTML and register a limitation warning with the parser. More... | |
getWarning ( $message, $max='') | |
Get warning HTML. More... | |
StripState::__construct | ( | Parser | $parser = null , |
$options = [] |
|||
) |
Parser | null | $parser | |
array | $options |
Definition at line 49 of file StripState.php.
References $parser, and Parser\MARKER_PREFIX.
StripState::addGeneral | ( | $marker, | |
$value | |||
) |
string | $marker | |
string | $value |
Definition at line 79 of file StripState.php.
References addItem().
|
protected |
MWException |
string | $type | |
string | $marker | |
string | $value |
Definition at line 89 of file StripState.php.
References $type.
Referenced by addGeneral(), and addNoWiki().
StripState::addNoWiki | ( | $marker, | |
$value | |||
) |
Add a nowiki strip item.
string | $marker | |
string | $value |
Definition at line 71 of file StripState.php.
References addItem().
|
private |
Get warning HTML and register a limitation warning with the parser.
string | $type | |
int | string | $max |
Definition at line 181 of file StripState.php.
References $type, and getWarning().
Referenced by unstripType().
StripState::getLimitReport | ( | ) |
Get an array of parameters to pass to ParserOutput::setLimitReportData()
Definition at line 208 of file StripState.php.
References $depthLimit, $expandSize, $highestDepth, and $sizeLimit.
|
private |
Get warning HTML.
string | $message | |
int | string | $max |
Definition at line 195 of file StripState.php.
References wfMessage().
Referenced by getLimitationWarning(), and unstripType().
StripState::killMarkers | ( | $text | ) |
Remove any strip markers found in the given text.
string | $text |
Definition at line 231 of file StripState.php.
StripState::unstripBoth | ( | $text | ) |
string | $text |
Definition at line 117 of file StripState.php.
References unstripType().
StripState::unstripGeneral | ( | $text | ) |
string | $text |
Definition at line 101 of file StripState.php.
References unstripType().
StripState::unstripNoWiki | ( | $text | ) |
string | $text |
Definition at line 109 of file StripState.php.
References unstripType().
|
protected |
string | $type | |
string | $text |
Definition at line 128 of file StripState.php.
References $depth, $type, getLimitationWarning(), and getWarning().
Referenced by unstripBoth(), unstripGeneral(), and unstripNoWiki().
|
protected |
Definition at line 35 of file StripState.php.
|
protected |
Definition at line 30 of file StripState.php.
|
protected |
Definition at line 36 of file StripState.php.
Referenced by unstripType().
|
protected |
Definition at line 40 of file StripState.php.
Referenced by getLimitReport().
|
protected |
Definition at line 38 of file StripState.php.
Referenced by getLimitReport().
|
protected |
Definition at line 37 of file StripState.php.
Referenced by getLimitReport().
|
protected |
Definition at line 33 of file StripState.php.
Referenced by __construct().
|
protected |
Definition at line 31 of file StripState.php.
|
protected |
Definition at line 41 of file StripState.php.
Referenced by getLimitReport().