MediaWiki REL1_34
|
Expansion frame with template arguments. More...
Public Member Functions | |
__construct ( $preprocessor, $parent=false, $numberedArgs=[], $namedArgs=[], $title=false) | |
__toString () | |
cachedExpand ( $key, $root, $flags=0) | |
getArgument ( $name) | |
getArguments () | |
getNamedArgument ( $name) | |
getNamedArguments () | |
getNumberedArgument ( $index) | |
getNumberedArguments () | |
isEmpty () | |
Returns true if there are no arguments in this frame. | |
isTemplate () | |
Return true if the frame is a template frame. | |
setTTL ( $ttl) | |
Set the TTL. | |
setVolatile ( $flag=true) | |
Set the volatile flag. | |
Public Member Functions inherited from PPFrame_DOM | |
__construct ( $preprocessor) | |
Construct a new preprocessor frame. | |
expand ( $root, $flags=0) | |
getPDBK ( $level=false) | |
getTitle () | |
Get a title of frame. | |
getTTL () | |
Get the TTL. | |
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) | |
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. | |
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 | |
$namedArgs | |
$namedExpansionCache | |
$numberedArgs | |
$numberedExpansionCache | |
PPFrame_DOM | $parent |
Public Attributes inherited from PPFrame_DOM | |
$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 | |
Public Attributes inherited from PPFrame | |
const | NO_ARGS = 1 |
const | NO_IGNORE = 8 |
const | NO_TAGS = 32 |
const | NO_TEMPLATES = 2 |
const | RECOVER_COMMENTS = 16 |
const | RECOVER_ORIG |
const | STRIP_COMMENTS = 4 |
const | SUPPORTS_INDEX_OFFSET = 1 |
This constant exists when $indexOffset is supported in newChild() | |
Additional Inherited Members | |
Protected Attributes inherited from PPFrame_DOM | |
array | $childExpansionCache |
Expansion frame with template arguments.
Definition at line 28 of file PPTemplateFrame_DOM.php.
PPTemplateFrame_DOM::__construct | ( | $preprocessor, | |
$parent = false , |
|||
$numberedArgs = [] , |
|||
$namedArgs = [] , |
|||
$title = false |
|||
) |
Preprocessor | $preprocessor | |
bool | PPFrame_DOM | $parent | |
array | $numberedArgs | |
array | $namedArgs | |
bool | Title | $title |
Definition at line 45 of file PPTemplateFrame_DOM.php.
References $namedArgs, $numberedArgs, $parent, PPFrame_DOM\$preprocessor, PPFrame_DOM\$title, and Title\getPrefixedDBkey().
PPTemplateFrame_DOM::__toString | ( | ) |
Reimplemented from PPFrame_DOM.
Definition at line 65 of file PPTemplateFrame_DOM.php.
References $args, $namedArgs, and $s.
PPTemplateFrame_DOM::cachedExpand | ( | $key, | |
$root, | |||
$flags = 0 |
|||
) |
MWException |
string | int | $key | |
string | PPNode_DOM | DOMDocument | $root | |
int | $flags |
Reimplemented from PPFrame_DOM.
Definition at line 89 of file PPTemplateFrame_DOM.php.
References PPFrame_DOM\expand(), and PPFrame_DOM\isVolatile().
PPTemplateFrame_DOM::getArgument | ( | $name | ) |
int | string | $name |
Reimplemented from PPFrame_DOM.
Definition at line 173 of file PPTemplateFrame_DOM.php.
References getNamedArgument(), and getNumberedArgument().
Referenced by getArguments(), getNamedArguments(), and getNumberedArguments().
PPTemplateFrame_DOM::getArguments | ( | ) |
Reimplemented from PPFrame_DOM.
Definition at line 109 of file PPTemplateFrame_DOM.php.
References getArgument().
PPTemplateFrame_DOM::getNamedArgument | ( | $name | ) |
string | $name |
Definition at line 157 of file PPTemplateFrame_DOM.php.
References PPFrame\STRIP_COMMENTS.
Referenced by getArgument().
PPTemplateFrame_DOM::getNamedArguments | ( | ) |
Reimplemented from PPFrame_DOM.
Definition at line 127 of file PPTemplateFrame_DOM.php.
References getArgument().
PPTemplateFrame_DOM::getNumberedArgument | ( | $index | ) |
int | $index |
Definition at line 139 of file PPTemplateFrame_DOM.php.
References PPFrame\STRIP_COMMENTS.
Referenced by getArgument().
PPTemplateFrame_DOM::getNumberedArguments | ( | ) |
Reimplemented from PPFrame_DOM.
Definition at line 119 of file PPTemplateFrame_DOM.php.
References getArgument().
PPTemplateFrame_DOM::isEmpty | ( | ) |
Returns true if there are no arguments in this frame.
Reimplemented from PPFrame_DOM.
Definition at line 105 of file PPTemplateFrame_DOM.php.
PPTemplateFrame_DOM::isTemplate | ( | ) |
Return true if the frame is a template frame.
Reimplemented from PPFrame_DOM.
Definition at line 186 of file PPTemplateFrame_DOM.php.
PPTemplateFrame_DOM::setTTL | ( | $ttl | ) |
Set the TTL.
int | $ttl |
Reimplemented from PPFrame_DOM.
Definition at line 195 of file PPTemplateFrame_DOM.php.
References PPFrame_DOM\$ttl.
PPTemplateFrame_DOM::setVolatile | ( | $flag = true | ) |
Set the volatile flag.
bool | $flag |
Reimplemented from PPFrame_DOM.
Definition at line 190 of file PPTemplateFrame_DOM.php.
PPTemplateFrame_DOM::$namedArgs |
Definition at line 30 of file PPTemplateFrame_DOM.php.
Referenced by __construct(), and __toString().
PPTemplateFrame_DOM::$namedExpansionCache |
Definition at line 36 of file PPTemplateFrame_DOM.php.
PPTemplateFrame_DOM::$numberedArgs |
Definition at line 30 of file PPTemplateFrame_DOM.php.
Referenced by __construct().
PPTemplateFrame_DOM::$numberedExpansionCache |
Definition at line 36 of file PPTemplateFrame_DOM.php.
PPFrame_DOM PPTemplateFrame_DOM::$parent |
Definition at line 35 of file PPTemplateFrame_DOM.php.
Referenced by __construct().