|
| | __construct (?Parser $parser=null, $options=[]) |
| |
| | addExtTag ( $marker, $value, $frame) |
| |
| | addGeneral ( $marker, $value) |
| |
| | addNoWiki ( $marker, $value, ?string $extra=null) |
| | Add a nowiki strip item.
|
| |
| | addParsoidOpaque ( $marker, PFragment $extra) |
| |
| | getLimitReport () |
| | Get an array of parameters to pass to ParserOutput::setLimitReportData()
|
| |
| | killMarkers ( $text) |
| | Remove any strip markers found in the given text.
|
| |
| | replaceNoWikis (string $text, callable $callback) |
| |
| | split (string $text, bool $keepExtTag=false) |
| | Split the given text by strip markers, returning an array of [ 'type' => ..., 'content' => ... ] elements.
|
| |
| | unstripBoth ( $text) |
| |
| | unstripGeneral ( $text) |
| |
| | unstripNoWiki ( $text) |
| |
| | unstripParsoid (string $text, $extApi) |
| |
|
| | addItem ( $type, $marker, $value, $extra=null) |
| |
| | unstripType ( $type, $text, ?ParsoidExtensionAPI $extApi=null) |
| |
- Todo
- document, briefly.
- Stability: newable
Definition at line 22 of file StripState.php.
◆ __construct()
| MediaWiki\Parser\StripState::__construct |
( |
?Parser | $parser = null, |
|
|
| $options = [] ) |
◆ addExtTag()
| MediaWiki\Parser\StripState::addExtTag |
( |
| $marker, |
|
|
| $value, |
|
|
| $frame ) |
◆ 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 390 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 413 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/SyntaxHighlight
Definition at line 163 of file StripState.php.
◆ split()
| MediaWiki\Parser\StripState::split |
( |
string | $text, |
|
|
bool | $keepExtTag = false ) |
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,extra?:mixed}>
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 | ) |
|
◆ unstripParsoid()
| MediaWiki\Parser\StripState::unstripParsoid |
( |
string | $text, |
|
|
| $extApi ) |
◆ unstripType()
| MediaWiki\Parser\StripState::unstripType |
( |
| $type, |
|
|
| $text, |
|
|
?ParsoidExtensionAPI | $extApi = null ) |
|
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: