- Todo
- document, briefly.
- Stability: newable
Definition at line 34 of file StripState.php.
◆ __construct()
MediaWiki\Parser\StripState::__construct |
( |
?Parser | $parser = null, |
|
|
| $options = [] ) |
◆ addExtTag()
MediaWiki\Parser\StripState::addExtTag |
( |
| $marker, |
|
|
| $value ) |
◆ addGeneral()
MediaWiki\Parser\StripState::addGeneral |
( |
| $marker, |
|
|
| $value ) |
◆ addItem()
MediaWiki\Parser\StripState::addItem |
( |
| $type, |
|
|
| $marker, |
|
|
| $value ) |
|
protected |
◆ addNoWiki()
MediaWiki\Parser\StripState::addNoWiki |
( |
| $marker, |
|
|
| $value ) |
◆ getLimitReport()
MediaWiki\Parser\StripState::getLimitReport |
( |
| ) |
|
Get an array of parameters to pass to ParserOutput::setLimitReportData()
- Access: internal
- Should only be called by Parser
- Returns
- array
Definition at line 296 of file StripState.php.
◆ killMarkers()
MediaWiki\Parser\StripState::killMarkers |
( |
| $text | ) |
|
Remove any strip markers found in the given text.
- Parameters
-
- Returns
- string
Definition at line 319 of file StripState.php.
◆ replaceNoWikis()
MediaWiki\Parser\StripState::replaceNoWikis |
( |
string | $text, |
|
|
callable | $callback ) |
- Parameters
-
string | $text | |
callable | $callback | |
- Returns
- string
Definition at line 143 of file StripState.php.
◆ split()
MediaWiki\Parser\StripState::split |
( |
string | $text | ) |
|
Split the given text by strip markers, returning an array that alternates between plain text and strip marker information.
The strip marker information includes 'type', and 'content'. The resulting array will always be at least 1 element long and contain an odd number of elements.
- Returns
- array<string|array{type:string,content:string}>
Definition at line 179 of file StripState.php.
◆ unstripBoth()
MediaWiki\Parser\StripState::unstripBoth |
( |
| $text | ) |
|
◆ unstripGeneral()
MediaWiki\Parser\StripState::unstripGeneral |
( |
| $text | ) |
|
◆ unstripNoWiki()
MediaWiki\Parser\StripState::unstripNoWiki |
( |
| $text | ) |
|
◆ unstripType()
MediaWiki\Parser\StripState::unstripType |
( |
| $type, |
|
|
| $text ) |
|
protected |
◆ $circularRefGuard
array MediaWiki\Parser\StripState::$circularRefGuard |
|
protected |
◆ $data
array [] MediaWiki\Parser\StripState::$data |
|
protected |
◆ $depth
int MediaWiki\Parser\StripState::$depth = 0 |
|
protected |
◆ $depthLimit
int MediaWiki\Parser\StripState::$depthLimit = 20 |
|
protected |
◆ $expandSize
int MediaWiki\Parser\StripState::$expandSize = 0 |
|
protected |
◆ $highestDepth
int MediaWiki\Parser\StripState::$highestDepth = 0 |
|
protected |
◆ $parser
Parser MediaWiki\Parser\StripState::$parser |
|
protected |
◆ $regex
string MediaWiki\Parser\StripState::$regex |
|
protected |
◆ $sizeLimit
int MediaWiki\Parser\StripState::$sizeLimit = 5_000_000 |
|
protected |
The documentation for this class was generated from the following file: