- Todo
- document, briefly.
- Stability: newable
Definition at line 35 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, |
|
|
| $extra = null ) |
|
protected |
◆ addNoWiki()
MediaWiki\Parser\StripState::addNoWiki |
( |
| $marker, |
|
|
| $value, |
|
|
?string | $extra = null ) |
◆ addParsoidOpaque()
MediaWiki\Parser\StripState::addParsoidOpaque |
( |
| $marker, |
|
|
PFragment | $extra ) |
◆ 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 375 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 398 of file StripState.php.
◆ replaceNoWikis()
MediaWiki\Parser\StripState::replaceNoWikis |
( |
string | $text, |
|
|
callable | $callback ) |
- Parameters
-
string | $text | |
callable | $callback | |
- Returns
- string
- Stability: unstable
- Temporarily used by Scribunto
Definition at line 164 of file StripState.php.
◆ split()
MediaWiki\Parser\StripState::split |
( |
string | $text | ) |
|
Split the given text by strip markers, returning an array of [ 'type' => ..., 'content' => ... ] elements.
The type property is:
- 'string' for plain strings and 'exttag' strip markers
- otherwise, name of the strip marker that generated the 'content' value
- Returns
- array<string|array{type:string,content:string}>
Definition at line 200 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 |
◆ $extra
array [] MediaWiki\Parser\StripState::$extra |
|
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: