MediaWiki
1.30.0
|
An expansion frame, used as a context to expand the result of preprocessToObj() More...
Public Member Functions | |
__construct ( $preprocessor) | |
Construct a new preprocessor frame. More... | |
__toString () | |
cachedExpand ( $key, $root, $flags=0) | |
expand ( $root, $flags=0) | |
getArgument ( $name) | |
getArguments () | |
getNamedArguments () | |
getNumberedArguments () | |
getPDBK ( $level=false) | |
getTitle () | |
Get a title of frame. More... | |
getTTL () | |
Get the TTL. More... | |
implode ( $sep) | |
Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth. More... | |
implodeWithFlags ( $sep, $flags) | |
isEmpty () | |
Returns true if there are no arguments in this frame. More... | |
isTemplate () | |
Return true if the frame is a template frame. More... | |
isVolatile () | |
Get the volatile flag. More... | |
loopCheck ( $title) | |
Returns true if the infinite loop check is OK, false if a loop is detected. More... | |
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. More... | |
setTTL ( $ttl) | |
Set the TTL. More... | |
setVolatile ( $flag=true) | |
Set the volatile flag. More... | |
virtualBracketedImplode ( $start, $sep, $end) | |
Virtual implode with brackets. More... | |
virtualImplode ( $sep) | |
Makes an object that, when expand()ed, will be the same as one obtained with implode() More... | |
Public Attributes | |
$depth | |
Recursion depth of this frame, top = 0 Note that this is NOT the same as expansion depth in expand() More... | |
$loopCheckHash | |
Hashtable listing templates which are disallowed for expansion in this frame, having been encountered previously in parent frames. More... | |
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 = 59 |
const | STRIP_COMMENTS = 4 |
const | SUPPORTS_INDEX_OFFSET = 1 |
This constant exists when $indexOffset is supported in newChild() More... | |
Protected Attributes | |
array | $childExpansionCache |
Private Attributes | |
$ttl = null | |
$volatile = false | |
An expansion frame, used as a context to expand the result of preprocessToObj()
Definition at line 843 of file Preprocessor_Hash.php.
PPFrame_Hash::__construct | ( | $preprocessor | ) |
Construct a new preprocessor frame.
Preprocessor | $preprocessor | The parent preprocessor |
Definition at line 886 of file Preprocessor_Hash.php.
PPFrame_Hash::__toString | ( | ) |
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1316 of file Preprocessor_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 957 of file Preprocessor_Hash.php.
PPFrame_Hash::expand | ( | $root, | |
$flags = 0 |
|||
) |
MWException |
string | PPNode | $root | |
int | $flags |
Implements PPFrame.
Definition at line 968 of file Preprocessor_Hash.php.
PPFrame_Hash::getArgument | ( | $name | ) |
int | string | $name |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash, and PPCustomFrame_Hash.
Definition at line 1366 of file Preprocessor_Hash.php.
PPFrame_Hash::getArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1335 of file Preprocessor_Hash.php.
PPFrame_Hash::getNamedArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1349 of file Preprocessor_Hash.php.
PPFrame_Hash::getNumberedArguments | ( | ) |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1342 of file Preprocessor_Hash.php.
PPFrame_Hash::getPDBK | ( | $level = false | ) |
bool | $level |
Definition at line 1324 of file Preprocessor_Hash.php.
PPFrame_Hash::getTitle | ( | ) |
Get a title of frame.
Implements PPFrame.
Definition at line 1395 of file Preprocessor_Hash.php.
PPFrame_Hash::getTTL | ( | ) |
Get the TTL.
Implements PPFrame.
Definition at line 1433 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.
string | $sep | |
string | PPNode | $args,... |
Implements PPFrame.
Definition at line 1226 of file Preprocessor_Hash.php.
PPFrame_Hash::implodeWithFlags | ( | $sep, | |
$flags | |||
) |
string | $sep | |
int | $flags | |
string | PPNode | $args,... |
Implements PPFrame.
Definition at line 1195 of file Preprocessor_Hash.php.
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 1358 of file Preprocessor_Hash.php.
PPFrame_Hash::isTemplate | ( | ) |
Return true if the frame is a template frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1386 of file Preprocessor_Hash.php.
PPFrame_Hash::isVolatile | ( | ) |
Get the volatile flag.
Implements PPFrame.
Definition at line 1413 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 1377 of file Preprocessor_Hash.php.
Create a new child frame $args is optionally a multi-root PPNode or array containing the template arguments.
array | bool | PPNode_Hash_Array | $args | |
Title | bool | $title | |
int | $indexOffset |
MWException |
Implements PPFrame.
Definition at line 906 of file Preprocessor_Hash.php.
PPFrame_Hash::setTTL | ( | $ttl | ) |
Set the TTL.
int | $ttl |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1422 of file Preprocessor_Hash.php.
PPFrame_Hash::setVolatile | ( | $flag = true | ) |
Set the volatile flag.
bool | $flag |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1404 of file Preprocessor_Hash.php.
PPFrame_Hash::virtualBracketedImplode | ( | $start, | |
$sep, | |||
$end | |||
) |
Virtual implode with brackets.
string | $start | |
string | $sep | |
string | $end | |
string | PPNode | $args,... |
Implements PPFrame.
Definition at line 1291 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()
string | $sep | |
string | PPNode | $args,... |
Implements PPFrame.
Definition at line 1258 of file Preprocessor_Hash.php.
|
protected |
Definition at line 880 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 872 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 866 of file Preprocessor_Hash.php.
Parser PPFrame_Hash::$parser |
Definition at line 849 of file Preprocessor_Hash.php.
Preprocessor PPFrame_Hash::$preprocessor |
Definition at line 854 of file Preprocessor_Hash.php.
Title PPFrame_Hash::$title |
Definition at line 859 of file Preprocessor_Hash.php.
PPFrame_Hash::$titleCache |
Definition at line 860 of file Preprocessor_Hash.php.
|
private |
Definition at line 875 of file Preprocessor_Hash.php.
|
private |
Definition at line 874 of file Preprocessor_Hash.php.