MediaWiki REL1_39
|
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) | |
setVolatile ( $flag=true) | |
Set the volatile flag. | |
Public Member Functions inherited from PPFrame_Hash | |
__construct ( $preprocessor) | |
expand ( $root, $flags=0) | |
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) | |
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 | |
array | $namedArgs |
array | $namedExpansionCache |
array | $numberedArgs |
array | $numberedExpansionCache |
PPFrame_Hash | $parent |
Public Attributes inherited from PPFrame_Hash | |
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 |
Additional Inherited Members | |
Protected Attributes inherited from PPFrame_Hash | |
array | $childExpansionCache |
Expansion frame with template arguments.
Definition at line 27 of file PPTemplateFrame_Hash.php.
PPTemplateFrame_Hash::__construct | ( | $preprocessor, | |
$parent = false, | |||
$numberedArgs = [], | |||
$namedArgs = [], | |||
$title = false ) |
Preprocessor | $preprocessor | |
false | PPFrame | $parent | |
array | $numberedArgs | |
array | $namedArgs | |
false | Title | $title |
Definition at line 47 of file PPTemplateFrame_Hash.php.
References $namedArgs, $numberedArgs, $parent, PPFrame_Hash\$preprocessor, PPFrame_Hash\$title, and Title\getPrefixedDBkey().
PPTemplateFrame_Hash::__toString | ( | ) |
Reimplemented from PPFrame_Hash.
Definition at line 69 of file PPTemplateFrame_Hash.php.
References $args, $namedArgs, and $s.
PPTemplateFrame_Hash::cachedExpand | ( | $key, | |
$root, | |||
$flags = 0 ) |
MWException |
string | int | $key | |
string | PPNode | $root | |
int | $flags |
Reimplemented from PPFrame_Hash.
Definition at line 93 of file PPTemplateFrame_Hash.php.
References PPFrame_Hash\expand(), and PPFrame_Hash\isVolatile().
PPTemplateFrame_Hash::getArgument | ( | $name | ) |
int | string | $name |
Reimplemented from PPFrame_Hash.
Definition at line 186 of file PPTemplateFrame_Hash.php.
References getNamedArgument(), and getNumberedArgument().
Referenced by getArguments(), getNamedArguments(), and getNumberedArguments().
PPTemplateFrame_Hash::getArguments | ( | ) |
Reimplemented from PPFrame_Hash.
Definition at line 116 of file PPTemplateFrame_Hash.php.
References getArgument().
PPTemplateFrame_Hash::getNamedArgument | ( | $name | ) |
string | $name |
Definition at line 170 of file PPTemplateFrame_Hash.php.
References PPFrame\STRIP_COMMENTS.
Referenced by getArgument().
PPTemplateFrame_Hash::getNamedArguments | ( | ) |
Reimplemented from PPFrame_Hash.
Definition at line 140 of file PPTemplateFrame_Hash.php.
References getArgument().
PPTemplateFrame_Hash::getNumberedArgument | ( | $index | ) |
int | $index |
Definition at line 152 of file PPTemplateFrame_Hash.php.
References PPFrame\STRIP_COMMENTS.
Referenced by getArgument().
PPTemplateFrame_Hash::getNumberedArguments | ( | ) |
Reimplemented from PPFrame_Hash.
Definition at line 129 of file PPTemplateFrame_Hash.php.
References getArgument().
PPTemplateFrame_Hash::isEmpty | ( | ) |
Returns true if there are no arguments in this frame.
Reimplemented from PPFrame_Hash.
Definition at line 109 of file PPTemplateFrame_Hash.php.
PPTemplateFrame_Hash::isTemplate | ( | ) |
Return true if the frame is a template frame.
Reimplemented from PPFrame_Hash.
Definition at line 199 of file PPTemplateFrame_Hash.php.
PPTemplateFrame_Hash::setTTL | ( | $ttl | ) |
int | $ttl |
Reimplemented from PPFrame_Hash.
Definition at line 208 of file PPTemplateFrame_Hash.php.
PPTemplateFrame_Hash::setVolatile | ( | $flag = true | ) |
Set the volatile flag.
bool | $flag |
Reimplemented from PPFrame_Hash.
Definition at line 203 of file PPTemplateFrame_Hash.php.
array PPTemplateFrame_Hash::$namedArgs |
Definition at line 32 of file PPTemplateFrame_Hash.php.
Referenced by __construct(), and __toString().
array PPTemplateFrame_Hash::$namedExpansionCache |
Definition at line 38 of file PPTemplateFrame_Hash.php.
array PPTemplateFrame_Hash::$numberedArgs |
Definition at line 30 of file PPTemplateFrame_Hash.php.
Referenced by __construct().
array PPTemplateFrame_Hash::$numberedExpansionCache |
Definition at line 36 of file PPTemplateFrame_Hash.php.
PPFrame_Hash PPTemplateFrame_Hash::$parent |
Definition at line 34 of file PPTemplateFrame_Hash.php.
Referenced by __construct().