MediaWiki  REL1_20
PPFrame_Hash Class Reference

An expansion frame, used as a context to expand the result of preprocessToObj() More...

Inheritance diagram for PPFrame_Hash:
Collaboration diagram for PPFrame_Hash:

List of all members.

Public Member Functions

 __construct ($preprocessor)
 Construct a new preprocessor frame.
 __toString ()
 expand ($root, $flags=0)
 getArgument ($name)
 getArguments ()
 getNamedArguments ()
 getNumberedArguments ()
 getPDBK ($level=false)
 getTitle ()
 Get a title of frame.
 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.
 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)
 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

Detailed Description

An expansion frame, used as a context to expand the result of preprocessToObj()

Definition at line 838 of file Preprocessor_Hash.php.


Constructor & Destructor Documentation

PPFrame_Hash::__construct ( preprocessor)

Construct a new preprocessor frame.

Parameters:
$preprocessorPreprocessor: the parent preprocessor

Definition at line 870 of file Preprocessor_Hash.php.


Member Function Documentation

Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.

Definition at line 1222 of file Preprocessor_Hash.php.

PPFrame_Hash::expand ( root,
flags = 0 
)
Exceptions:
MWException
Parameters:
$root
$flagsint
Returns:
string

Implements PPFrame.

Definition at line 924 of file Preprocessor_Hash.php.

Parameters:
$name
Returns:
bool

Implements PPFrame.

Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.

Definition at line 1272 of file Preprocessor_Hash.php.

Returns:
array

Implements PPFrame.

Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.

Definition at line 1241 of file Preprocessor_Hash.php.

Returns:
array

Implements PPFrame.

Reimplemented in PPTemplateFrame_Hash.

Definition at line 1255 of file Preprocessor_Hash.php.

Returns:
array

Implements PPFrame.

Reimplemented in PPTemplateFrame_Hash.

Definition at line 1248 of file Preprocessor_Hash.php.

PPFrame_Hash::getPDBK ( level = false)
Parameters:
$levelbool
Returns:
array|bool|String

Definition at line 1230 of file Preprocessor_Hash.php.

Get a title of frame.

Returns:
Title

Implements PPFrame.

Definition at line 1301 of file Preprocessor_Hash.php.

Implode with no flags specified This previously called implodeWithFlags but has now been inlined to reduce stack depth.

Returns:
string

Implements PPFrame.

Definition at line 1138 of file Preprocessor_Hash.php.

PPFrame_Hash::implodeWithFlags ( sep,
flags 
)
Parameters:
$sep
$flags
Returns:
string

Implements PPFrame.

Definition at line 1109 of file Preprocessor_Hash.php.

Returns true if there are no arguments in this frame.

Returns:
bool

Implements PPFrame.

Reimplemented in PPCustomFrame_Hash, and PPTemplateFrame_Hash.

Definition at line 1264 of file Preprocessor_Hash.php.

Return true if the frame is a template frame.

Returns:
bool

Implements PPFrame.

Reimplemented in PPTemplateFrame_Hash.

Definition at line 1292 of file Preprocessor_Hash.php.

Returns true if the infinite loop check is OK, false if a loop is detected.

Parameters:
$titleTitle
Returns:
bool

Implements PPFrame.

Definition at line 1283 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.

Parameters:
$argsPPNode_Hash_Array|array
$titleTitle|bool
Returns:
PPTemplateFrame_Hash

Implements PPFrame.

Definition at line 888 of file Preprocessor_Hash.php.

PPFrame_Hash::virtualBracketedImplode ( start,
sep,
end 
)

Virtual implode with brackets.

Returns:
PPNode_Hash_Array

Implements PPFrame.

Definition at line 1197 of file Preprocessor_Hash.php.

Makes an object that, when expand()ed, will be the same as one obtained with implode()

Returns:
PPNode_Hash_Array

Implements PPFrame.

Definition at line 1168 of file Preprocessor_Hash.php.


Member Data Documentation

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 863 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 857 of file Preprocessor_Hash.php.

Parser PPFrame_Hash::$parser

Definition at line 842 of file Preprocessor_Hash.php.

Preprocessor PPFrame_Hash::$preprocessor

Definition at line 846 of file Preprocessor_Hash.php.

Title PPFrame_Hash::$title

Definition at line 850 of file Preprocessor_Hash.php.

PPFrame_Hash::$titleCache

Definition at line 851 of file Preprocessor_Hash.php.


The documentation for this class was generated from the following file: