|
MediaWiki
REL1_24
|
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 () | |
| cachedExpand ($key, $root, $flags=0) | |
| expand ($root, $flags=0) | |
| getArgument ($name) | |
| getArguments () | |
| getNamedArguments () | |
| getNumberedArguments () | |
| getPDBK ($level=false) | |
| getTitle () | |
| Get a title of frame. | |
| getTTL () | |
| Get the TTL. | |
| 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. | |
| 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. | |
| setTTL ($ttl) | |
| Set the TTL. | |
| setVolatile ($flag=true) | |
| Set the volatile flag. | |
| 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 | |
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 907 of file Preprocessor_Hash.php.
| PPFrame_Hash::__construct | ( | $ | preprocessor | ) |
Construct a new preprocessor frame.
| Preprocessor | $preprocessor | The parent preprocessor |
Definition at line 946 of file Preprocessor_Hash.php.
References $preprocessor, array(), false, and title.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1346 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 1003 of file Preprocessor_Hash.php.
| PPFrame_Hash::expand | ( | $ | root, |
| $ | flags = 0 |
||
| ) |
| MWException |
| string | PPNode | $root | |
| int | $flags |
Implements PPFrame.
Definition at line 1014 of file Preprocessor_Hash.php.
| PPFrame_Hash::getArgument | ( | $ | name | ) |
| string | $name |
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1396 of file Preprocessor_Hash.php.
Implements PPFrame.
Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.
Definition at line 1365 of file Preprocessor_Hash.php.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1379 of file Preprocessor_Hash.php.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1372 of file Preprocessor_Hash.php.
| PPFrame_Hash::getPDBK | ( | $ | level = false | ) |
| bool | $level |
Definition at line 1354 of file Preprocessor_Hash.php.
References title.
Get a title of frame.
Implements PPFrame.
Definition at line 1425 of file Preprocessor_Hash.php.
Get the TTL.
Implements PPFrame.
Definition at line 1463 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 1256 of file Preprocessor_Hash.php.
| PPFrame_Hash::implodeWithFlags | ( | $ | sep, |
| $ | flags | ||
| ) |
| string | $sep | |
| int | $flags | |
| string | PPNode | $args,... |
Implements PPFrame.
Definition at line 1225 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 1388 of file Preprocessor_Hash.php.
Return true if the frame is a template frame.
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1416 of file Preprocessor_Hash.php.
Get the volatile flag.
Implements PPFrame.
Definition at line 1443 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 1407 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 | |
| Title | bool | $title | |
| int | $indexOffset |
| MWException |
Implements PPFrame.
Definition at line 966 of file Preprocessor_Hash.php.
| PPFrame_Hash::setTTL | ( | $ | ttl | ) |
Set the TTL.
| int | $ttl |
Implements PPFrame.
Reimplemented in PPTemplateFrame_Hash.
Definition at line 1452 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 1434 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 1321 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 1288 of file Preprocessor_Hash.php.
array PPFrame_Hash::$childExpansionCache [protected] |
Definition at line 940 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 933 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 927 of file Preprocessor_Hash.php.
| Parser PPFrame_Hash::$parser |
Definition at line 912 of file Preprocessor_Hash.php.
| Preprocessor PPFrame_Hash::$preprocessor |
Definition at line 916 of file Preprocessor_Hash.php.
Referenced by __construct(), and PPCustomFrame_Hash\__toString().
Definition at line 920 of file Preprocessor_Hash.php.
| PPFrame_Hash::$titleCache |
Definition at line 921 of file Preprocessor_Hash.php.
PPFrame_Hash::$ttl = null [private] |
Definition at line 936 of file Preprocessor_Hash.php.
PPFrame_Hash::$volatile = false [private] |
Definition at line 935 of file Preprocessor_Hash.php.