MediaWiki master
|
An expansion frame, used as a context to expand the result of preprocessToObj() More...
Inherits Stringable, and MediaWiki\Parser\PPFrame.
Inherited by MediaWiki\Parser\PPCustomFrame_Hash, and MediaWiki\Parser\PPTemplateFrame_Hash.
Public Member Functions | |
__construct ( $preprocessor) | |
__toString () | |
cachedExpand ( $key, $root, $flags=0) | |
expand ( $root, $flags=0) | |
getArgument ( $name) | |
getArguments () | |
getNamedArguments () | |
getNumberedArguments () | |
getPDBK ( $level=false) | |
getTitle () | |
Get a title of frame. | |
getTTL () | |
implode ( $sep,... $args) | |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth. | |
implodeWithFlags ( $sep, $flags,... $args) | |
isEmpty () | |
Returns true if there are no arguments in this frame. | |
isTemplate () | |
Return true if the frame is a template frame. | |
isVolatile () | |
Get the volatile flag. | |
loopCheck ( $title) | |
Returns true if the infinite loop check is OK, false if a loop is detected. | |
newChild ( $args=false, $title=false, $indexOffset=0) | |
Create a new child frame $args is optionally a multi-root PPNode or array containing the template arguments. | |
setTTL ( $ttl) | |
setVolatile ( $flag=true) | |
Set the volatile flag. | |
virtualBracketedImplode ( $start, $sep, $end,... $args) | |
Virtual implode with brackets. | |
virtualImplode ( $sep,... $args) | |
Makes an object that, when expand()ed, will be the same as one obtained with implode() | |
Public Attributes | |
int | $depth |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand() | |
true[] | $loopCheckHash |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames. | |
Parser | $parser |
Preprocessor | $preprocessor |
Title | $title |
string false[] | $titleCache |
Public Attributes inherited from MediaWiki\Parser\PPFrame | |
const | NO_ARGS = 1 |
const | NO_IGNORE = 8 |
const | NO_TAGS = 32 |
const | NO_TEMPLATES = 2 |
const | PROCESS_NOWIKI = 64 |
const | RECOVER_COMMENTS = 16 |
const | RECOVER_ORIG |
const | STRIP_COMMENTS = 4 |
Protected Attributes | |
array | $childExpansionCache |
An expansion frame, used as a context to expand the result of preprocessToObj()
Definition at line 35 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::__construct | ( | $preprocessor | ) |
Preprocessor | $preprocessor | The parent preprocessor |
Definition at line 92 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\$preprocessor.
MediaWiki\Parser\PPFrame_Hash::__toString | ( | ) |
Reimplemented in MediaWiki\Parser\PPCustomFrame_Hash, and MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 527 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::cachedExpand | ( | $key, | |
$root, | |||
$flags = 0 ) |
string | int | $key | |
string | PPNode | $root | |
int | $flags |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 167 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\expand().
MediaWiki\Parser\PPFrame_Hash::expand | ( | $root, | |
$flags = 0 ) |
string | PPNode | $root | |
int | $flags |
Implements MediaWiki\Parser\PPFrame.
Definition at line 177 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\expand(), MediaWiki\Parser\Parser\MARKER_PREFIX, MediaWiki\Parser\PPFrame\NO_ARGS, MediaWiki\Parser\PPFrame\NO_IGNORE, MediaWiki\Parser\PPFrame\NO_TAGS, MediaWiki\Parser\PPFrame\NO_TEMPLATES, MediaWiki\Parser\Parser\OT_HTML, MediaWiki\Parser\Parser\OT_PREPROCESS, MediaWiki\Parser\Parser\OT_WIKI, MediaWiki\Parser\PPFrame\PROCESS_NOWIKI, MediaWiki\Parser\PPFrame\RECOVER_COMMENTS, MediaWiki\Parser\PPNode_Hash_Tree\splitRawExt(), MediaWiki\Parser\PPNode_Hash_Tree\splitRawHeading(), MediaWiki\Parser\PPNode_Hash_Tree\splitRawTemplate(), MediaWiki\Parser\PPFrame\STRIP_COMMENTS, and MediaWiki\Parser\PPFrame_Hash\virtualBracketedImplode().
Referenced by MediaWiki\Parser\PPFrame_Hash\cachedExpand(), MediaWiki\Parser\PPTemplateFrame_Hash\cachedExpand(), MediaWiki\Parser\PPFrame_Hash\expand(), MediaWiki\Parser\PPFrame_Hash\implode(), MediaWiki\Parser\PPFrame_Hash\implodeWithFlags(), and MediaWiki\Parser\PPFrame_Hash\newChild().
MediaWiki\Parser\PPFrame_Hash::getArgument | ( | $name | ) |
int | string | $name |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPCustomFrame_Hash, and MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 577 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::getArguments | ( | ) |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPCustomFrame_Hash, and MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 546 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::getNamedArguments | ( | ) |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 560 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::getNumberedArguments | ( | ) |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 553 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::getPDBK | ( | $level = false | ) |
string | false | $level |
Definition at line 535 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::getTitle | ( | ) |
Get a title of frame.
Implements MediaWiki\Parser\PPFrame.
Definition at line 606 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\$title.
MediaWiki\Parser\PPFrame_Hash::getTTL | ( | ) |
Implements MediaWiki\Parser\PPFrame.
Definition at line 640 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::implode | ( | $sep, | |
$args ) |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth.
string | $sep | |
string|PPNode | ...$args |
Implements MediaWiki\Parser\PPFrame.
Definition at line 441 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\expand().
MediaWiki\Parser\PPFrame_Hash::implodeWithFlags | ( | $sep, | |
$flags, | |||
$args ) |
string | $sep | |
int | $flags | |
string|PPNode | ...$args |
Implements MediaWiki\Parser\PPFrame.
Definition at line 412 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\expand().
MediaWiki\Parser\PPFrame_Hash::isEmpty | ( | ) |
Returns true if there are no arguments in this frame.
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPCustomFrame_Hash, and MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 569 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::isTemplate | ( | ) |
Return true if the frame is a template frame.
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 597 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::isVolatile | ( | ) |
Get the volatile flag.
Implements MediaWiki\Parser\PPFrame.
Definition at line 624 of file PPFrame_Hash.php.
Referenced by MediaWiki\Parser\PPTemplateFrame_Hash\cachedExpand().
MediaWiki\Parser\PPFrame_Hash::loopCheck | ( | $title | ) |
Returns true if the infinite loop check is OK, false if a loop is detected.
Title | $title |
Implements MediaWiki\Parser\PPFrame.
Definition at line 588 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\$title, and MediaWiki\Title\Title\getPrefixedDBkey().
MediaWiki\Parser\PPFrame_Hash::newChild | ( | $args = false, | |
$title = false, | |||
$indexOffset = 0 ) |
Create a new child frame $args is optionally a multi-root PPNode or array containing the template arguments.
PPNode[] | false | PPNode_Hash_Array | $args | |
Title | false | $title | |
int | $indexOffset |
Implements MediaWiki\Parser\PPFrame.
Definition at line 113 of file PPFrame_Hash.php.
References MediaWiki\Parser\PPFrame_Hash\$title, MediaWiki\Parser\PPFrame_Hash\expand(), MediaWiki\Message\Message\numParam(), MediaWiki\Message\Message\plaintextParam(), and MediaWiki\Parser\PPFrame\STRIP_COMMENTS.
MediaWiki\Parser\PPFrame_Hash::setTTL | ( | $ttl | ) |
int | $ttl |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 631 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::setVolatile | ( | $flag = true | ) |
Set the volatile flag.
bool | $flag |
Implements MediaWiki\Parser\PPFrame.
Reimplemented in MediaWiki\Parser\PPTemplateFrame_Hash.
Definition at line 615 of file PPFrame_Hash.php.
MediaWiki\Parser\PPFrame_Hash::virtualBracketedImplode | ( | $start, | |
$sep, | |||
$end, | |||
$args ) |
Virtual implode with brackets.
string | $start | |
string | $sep | |
string | $end | |
string|PPNode | ...$args |
Implements MediaWiki\Parser\PPFrame.
Definition at line 503 of file PPFrame_Hash.php.
Referenced by MediaWiki\Parser\PPFrame_Hash\expand().
MediaWiki\Parser\PPFrame_Hash::virtualImplode | ( | $sep, | |
$args ) |
Makes an object that, when expand()ed, will be the same as one obtained with implode()
string | $sep | |
string|PPNode | ...$args |
Implements MediaWiki\Parser\PPFrame.
Definition at line 471 of file PPFrame_Hash.php.
|
protected |
Definition at line 79 of file PPFrame_Hash.php.
int MediaWiki\Parser\PPFrame_Hash::$depth |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand()
Definition at line 69 of file PPFrame_Hash.php.
true [] MediaWiki\Parser\PPFrame_Hash::$loopCheckHash |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames.
Definition at line 62 of file PPFrame_Hash.php.
Parser MediaWiki\Parser\PPFrame_Hash::$parser |
Definition at line 40 of file PPFrame_Hash.php.
Preprocessor MediaWiki\Parser\PPFrame_Hash::$preprocessor |
Definition at line 45 of file PPFrame_Hash.php.
Referenced by MediaWiki\Parser\PPFrame_Hash\__construct(), MediaWiki\Parser\PPCustomFrame_Hash\__construct(), and MediaWiki\Parser\PPTemplateFrame_Hash\__construct().
Title MediaWiki\Parser\PPFrame_Hash::$title |
Definition at line 50 of file PPFrame_Hash.php.
Referenced by MediaWiki\Parser\PPTemplateFrame_Hash\__construct(), MediaWiki\Parser\PPFrame_Hash\getTitle(), MediaWiki\Parser\PPFrame_Hash\loopCheck(), and MediaWiki\Parser\PPFrame_Hash\newChild().
string false [] MediaWiki\Parser\PPFrame_Hash::$titleCache |
Definition at line 55 of file PPFrame_Hash.php.