MediaWiki REL1_40
|
An expansion frame, used as a context to expand the result of preprocessToObj() More...
Inherits PPFrame.
Inherited by PPCustomFrame_Hash, and 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 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 29 of file PPFrame_Hash.php.
PPFrame_Hash::__construct | ( | $preprocessor | ) |
Preprocessor | $preprocessor | The parent preprocessor |
Definition at line 86 of file PPFrame_Hash.php.
References $preprocessor.
PPFrame_Hash::__toString | ( | ) |
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 520 of file PPFrame_Hash.php.
PPFrame_Hash::cachedExpand | ( | $key, | |
$root, | |||
$flags = 0 ) |
MWException |
string | int | $key | |
string | PPNode | $root | |
int | $flags |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 163 of file PPFrame_Hash.php.
References expand().
PPFrame_Hash::expand | ( | $root, | |
$flags = 0 ) |
MWException |
string | PPNode | $root | |
int | $flags |
Implements PPFrame.
Definition at line 174 of file PPFrame_Hash.php.
References expand(), Parser\MARKER_PREFIX, PPFrame\NO_ARGS, PPFrame\NO_IGNORE, PPFrame\NO_TAGS, PPFrame\NO_TEMPLATES, PPFrame\PROCESS_NOWIKI, PPFrame\RECOVER_COMMENTS, PPNode_Hash_Tree\splitRawExt(), PPNode_Hash_Tree\splitRawHeading(), PPNode_Hash_Tree\splitRawTemplate(), PPFrame\STRIP_COMMENTS, and virtualBracketedImplode().
Referenced by cachedExpand(), PPTemplateFrame_Hash\cachedExpand(), expand(), implode(), implodeWithFlags(), and newChild().
PPFrame_Hash::getArgument | ( | $name | ) |
int | string | $name |
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 570 of file PPFrame_Hash.php.
PPFrame_Hash::getArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 539 of file PPFrame_Hash.php.
PPFrame_Hash::getNamedArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 553 of file PPFrame_Hash.php.
PPFrame_Hash::getNumberedArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 546 of file PPFrame_Hash.php.
PPFrame_Hash::getPDBK | ( | $level = false | ) |
string | false | $level |
Definition at line 528 of file PPFrame_Hash.php.
PPFrame_Hash::getTitle | ( | ) |
Get a title of frame.
Implements PPFrame.
Definition at line 599 of file PPFrame_Hash.php.
References $title.
PPFrame_Hash::getTTL | ( | ) |
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 PPFrame.
Definition at line 434 of file PPFrame_Hash.php.
References expand().
PPFrame_Hash::implodeWithFlags | ( | $sep, | |
$flags, | |||
$args ) |
string | $sep | |
int | $flags | |
string|PPNode | ...$args |
Implements PPFrame.
Definition at line 405 of file PPFrame_Hash.php.
References expand().
PPFrame_Hash::isEmpty | ( | ) |
Returns true if there are no arguments in this frame.
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 562 of file PPFrame_Hash.php.
PPFrame_Hash::isTemplate | ( | ) |
Return true if the frame is a template frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 590 of file PPFrame_Hash.php.
PPFrame_Hash::isVolatile | ( | ) |
Get the volatile flag.
Implements PPFrame.
Definition at line 617 of file PPFrame_Hash.php.
Referenced by PPTemplateFrame_Hash\cachedExpand().
PPFrame_Hash::loopCheck | ( | $title | ) |
Returns true if the infinite loop check is OK, false if a loop is detected.
Title | $title |
Implements PPFrame.
Definition at line 581 of file PPFrame_Hash.php.
References $title, and MediaWiki\Title\Title\getPrefixedDBkey().
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 |
MWException |
Implements PPFrame.
Definition at line 108 of file PPFrame_Hash.php.
References $title, expand(), Message\numParam(), Message\plaintextParam(), and PPFrame\STRIP_COMMENTS.
PPFrame_Hash::setTTL | ( | $ttl | ) |
int | $ttl |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 624 of file PPFrame_Hash.php.
PPFrame_Hash::setVolatile | ( | $flag = true | ) |
Set the volatile flag.
bool | $flag |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 608 of file PPFrame_Hash.php.
PPFrame_Hash::virtualBracketedImplode | ( | $start, | |
$sep, | |||
$end, | |||
$args ) |
Virtual implode with brackets.
string | $start | |
string | $sep | |
string | $end | |
string|PPNode | ...$args |
Implements PPFrame.
Definition at line 496 of file PPFrame_Hash.php.
Referenced by expand().
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 PPFrame.
Definition at line 464 of file PPFrame_Hash.php.
|
protected |
Definition at line 73 of file PPFrame_Hash.php.
int 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 63 of file PPFrame_Hash.php.
true [] PPFrame_Hash::$loopCheckHash |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames.
Definition at line 56 of file PPFrame_Hash.php.
Parser PPFrame_Hash::$parser |
Definition at line 34 of file PPFrame_Hash.php.
Preprocessor PPFrame_Hash::$preprocessor |
Definition at line 39 of file PPFrame_Hash.php.
Referenced by __construct(), PPCustomFrame_Hash\__construct(), and PPTemplateFrame_Hash\__construct().
Title PPFrame_Hash::$title |
Definition at line 44 of file PPFrame_Hash.php.
Referenced by PPTemplateFrame_Hash\__construct(), getTitle(), loopCheck(), and newChild().
string false [] PPFrame_Hash::$titleCache |
Definition at line 49 of file PPFrame_Hash.php.