|
MediaWiki REL1_35
|
Public Member Functions | |
| __construct (Parser $parser=null, $options=[]) | |
| Stable to call. | |
| addGeneral ( $marker, $value) | |
| addNoWiki ( $marker, $value) | |
| Add a nowiki strip item. | |
| getLimitReport () | |
| Get an array of parameters to pass to ParserOutput::setLimitReportData() | |
| killMarkers ( $text) | |
| Remove any strip markers found in the given text. | |
| 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. | |
| getWarning ( $message, $max='') | |
| Get warning HTML. | |
Definition at line 29 of file StripState.php.
| StripState::__construct | ( | Parser | $parser = null, |
$options = [] |
|||
| ) |
Stable to call.
| Parser | null | $parser | |
| array | $options |
Definition at line 49 of file StripState.php.
References $parser.
| 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 | $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.
|
private |
Get warning HTML.
| string | $message | |
| int | $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 $type, getLimitationWarning(), getWarning(), and unstripType().
Referenced by unstripBoth(), unstripGeneral(), unstripNoWiki(), and unstripType().
|
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.
|
protected |
Definition at line 40 of file StripState.php.
|
protected |
Definition at line 38 of file StripState.php.
|
protected |
Definition at line 37 of file StripState.php.
|
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.