MediaWiki
REL1_22
|
An expansion frame, used as a context to expand the result of preprocessToObj() More...
Public Member Functions | |
__construct ($preprocessor) | |
Construct a new preprocessor frame. | |
__toString () | |
expand ($root, $flags=0) | |
getArgument ($name) | |
getArguments () | |
getNamedArguments () | |
getNumberedArguments () | |
getPDBK ($level=false) | |
getTitle () | |
Get a title of frame. | |
implode ($sep) | |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth. | |
implodeWithFlags ($sep, $flags) | |
isEmpty () | |
Returns true if there are no arguments in this frame. | |
isTemplate () | |
Return true if the frame is a template frame. | |
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. | |
virtualBracketedImplode ($start, $sep, $end) | |
Virtual implode with brackets. | |
virtualImplode ($sep) | |
Makes an object that, when expand()ed, will be the same as one obtained with implode() | |
Public Attributes | |
$depth | |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand() | |
$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 |
$titleCache |
An expansion frame, used as a context to expand the result of preprocessToObj()
Definition at line 870 of file Preprocessor_Hash.php.
PPFrame_Hash::__construct | ( | $ | preprocessor | ) |
Construct a new preprocessor frame.
$preprocessor | Preprocessor: the parent preprocessor |
Definition at line 901 of file Preprocessor_Hash.php.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1255 of file Preprocessor_Hash.php.
PPFrame_Hash::expand | ( | $ | root, |
$ | flags = 0 |
||
) |
MWException |
$root | |
$flags | int |
Implements PPFrame.
Definition at line 957 of file Preprocessor_Hash.php.
PPFrame_Hash::getArgument | ( | $ | name | ) |
$name |
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1305 of file Preprocessor_Hash.php.
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1274 of file Preprocessor_Hash.php.
References array().
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1288 of file Preprocessor_Hash.php.
References array().
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1281 of file Preprocessor_Hash.php.
References array().
PPFrame_Hash::getPDBK | ( | $ | level = false | ) |
$level | bool |
Definition at line 1263 of file Preprocessor_Hash.php.
Get a title of frame.
Implements PPFrame.
Definition at line 1334 of file Preprocessor_Hash.php.
PPFrame_Hash::implode | ( | $ | sep | ) |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth.
Implements PPFrame.
Definition at line 1171 of file Preprocessor_Hash.php.
PPFrame_Hash::implodeWithFlags | ( | $ | sep, |
$ | flags | ||
) |
$sep | |
$flags |
Implements PPFrame.
Definition at line 1142 of file Preprocessor_Hash.php.
Returns true if there are no arguments in this frame.
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1297 of file Preprocessor_Hash.php.
Return true if the frame is a template frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1325 of file Preprocessor_Hash.php.
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 1316 of file Preprocessor_Hash.php.
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.
array|bool|\PPNode_Hash_Array | $args PPNode_Hash_Array|array | |
$title | Title|bool | |
int | $indexOffset |
MWException |
Implements PPFrame.
Definition at line 921 of file Preprocessor_Hash.php.
PPFrame_Hash::virtualBracketedImplode | ( | $ | start, |
$ | sep, | ||
$ | end | ||
) |
Virtual implode with brackets.
Implements PPFrame.
Definition at line 1230 of file Preprocessor_Hash.php.
PPFrame_Hash::virtualImplode | ( | $ | sep | ) |
Makes an object that, when expand()ed, will be the same as one obtained with implode()
Implements PPFrame.
Definition at line 1201 of file Preprocessor_Hash.php.
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 895 of file Preprocessor_Hash.php.
PPFrame_Hash::$loopCheckHash |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames.
Definition at line 889 of file Preprocessor_Hash.php.
Parser PPFrame_Hash::$parser |
Definition at line 874 of file Preprocessor_Hash.php.
Preprocessor PPFrame_Hash::$preprocessor |
Definition at line 878 of file Preprocessor_Hash.php.
Definition at line 882 of file Preprocessor_Hash.php.
PPFrame_Hash::$titleCache |
Definition at line 883 of file Preprocessor_Hash.php.