Inherits PPFrame.
Inherited by PPCustomFrame_DOM, and PPTemplateFrame_DOM.
Public Member Functions | |
__construct ($preprocessor) | |
Construct a new preprocessor frame. | |
newChild ($args=false, $title=false) | |
Create a new child frame $args is optionally a multi-root PPNode or array containing the template arguments. | |
expand ($root, $flags=0) | |
Expand a document tree node. | |
implodeWithFlags ($sep, $flags) | |
Implode with flags for expand(). | |
implode ($sep) | |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth. | |
virtualImplode ($sep) | |
Makes an object that, when expand()ed, will be the same as one obtained with implode(). | |
virtualBracketedImplode ($start, $sep, $end) | |
Virtual implode with brackets. | |
__toString () | |
getPDBK ($level=false) | |
isEmpty () | |
Returns true if there are no arguments in this frame. | |
getArgument ($name) | |
Get an argument to this frame by name. | |
loopCheck ($title) | |
Returns true if the infinite loop check is OK, false if a loop is detected. | |
isTemplate () | |
Return true if the frame is a template frame. | |
Public Attributes | |
$preprocessor | |
$parser | |
$title | |
$titleCache | |
$loopCheckHash | |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames. | |
$depth | |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand(). |
Definition at line 803 of file Preprocessor_DOM.php.
PPFrame_DOM::__construct | ( | $ | preprocessor | ) |
Construct a new preprocessor frame.
Preprocessor | $preprocessor The parent preprocessor |
Definition at line 824 of file Preprocessor_DOM.php.
References $preprocessor.
PPFrame_DOM::__toString | ( | ) |
Reimplemented in PPTemplateFrame_DOM, and PPCustomFrame_DOM.
Definition at line 1180 of file Preprocessor_DOM.php.
PPFrame_DOM::expand | ( | $ | root, | |
$ | flags = 0 | |||
) |
Expand a document tree node.
Implements PPFrame.
Definition at line 871 of file Preprocessor_DOM.php.
References $count, $flags, $out, $s, $title, Parser::MARKER_SUFFIX, virtualBracketedImplode(), wfProfileIn(), and wfProfileOut().
Referenced by implode(), implodeWithFlags(), and newChild().
PPFrame_DOM::getArgument | ( | $ | name | ) |
Get an argument to this frame by name.
Implements PPFrame.
Reimplemented in PPTemplateFrame_DOM, and PPCustomFrame_DOM.
Definition at line 1199 of file Preprocessor_DOM.php.
PPFrame_DOM::getPDBK | ( | $ | level = false |
) |
Definition at line 1184 of file Preprocessor_DOM.php.
PPFrame_DOM::implode | ( | $ | sep | ) |
PPFrame_DOM::implodeWithFlags | ( | $ | sep, | |
$ | flags | |||
) |
PPFrame_DOM::isEmpty | ( | ) |
Returns true if there are no arguments in this frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_DOM, and PPCustomFrame_DOM.
Definition at line 1195 of file Preprocessor_DOM.php.
PPFrame_DOM::isTemplate | ( | ) |
Return true if the frame is a template frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_DOM.
Definition at line 1213 of file Preprocessor_DOM.php.
PPFrame_DOM::loopCheck | ( | $ | title | ) |
Returns true if the infinite loop check is OK, false if a loop is detected.
Implements PPFrame.
Definition at line 1206 of file Preprocessor_DOM.php.
References $title.
PPFrame_DOM::newChild | ( | $ | args = false , |
|
$ | title = false | |||
) |
Create a new child frame $args is optionally a multi-root PPNode or array containing the template arguments.
Implements PPFrame.
Definition at line 837 of file Preprocessor_DOM.php.
References $args, $name, $title, expand(), and PPFrame::STRIP_COMMENTS.
PPFrame_DOM::virtualBracketedImplode | ( | $ | start, | |
$ | sep, | |||
$ | end | |||
) |
PPFrame_DOM::virtualImplode | ( | $ | sep | ) |
PPFrame_DOM::$depth |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand().
Definition at line 817 of file Preprocessor_DOM.php.
PPFrame_DOM::$loopCheckHash |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames.
Definition at line 811 of file Preprocessor_DOM.php.
PPFrame_DOM::$parser |
Definition at line 804 of file Preprocessor_DOM.php.
PPFrame_DOM::$preprocessor |
Definition at line 804 of file Preprocessor_DOM.php.
Referenced by PPCustomFrame_DOM::__construct(), PPTemplateFrame_DOM::__construct(), and __construct().
PPFrame_DOM::$title |
Definition at line 804 of file Preprocessor_DOM.php.
Referenced by PPTemplateFrame_DOM::__construct(), expand(), loopCheck(), and newChild().
PPFrame_DOM::$titleCache |
Definition at line 805 of file Preprocessor_DOM.php.