MediaWiki  1.30.0
PPTemplateFrame_Hash Class Reference

Expansion frame with template arguments. More...

Inheritance diagram for PPTemplateFrame_Hash:
Collaboration diagram for PPTemplateFrame_Hash:

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. More...
 
 isTemplate ()
 Return true if the frame is a template frame. More...
 
 setTTL ( $ttl)
 Set the TTL. More...
 
 setVolatile ( $flag=true)
 Set the volatile flag. More...
 
- Public Member Functions inherited from PPFrame_Hash
 __construct ( $preprocessor)
 Construct a new preprocessor frame. More...
 
 expand ( $root, $flags=0)
 
 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)
 
 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...
 
 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

 $namedArgs
 
 $namedExpansionCache
 
 $numberedArgs
 
 $numberedExpansionCache
 
 $parent
 
- Public Attributes inherited from PPFrame_Hash
 $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...
 

Additional Inherited Members

- Protected Attributes inherited from PPFrame_Hash
array $childExpansionCache
 

Detailed Description

Expansion frame with template arguments.

Definition at line 1443 of file Preprocessor_Hash.php.

Constructor & Destructor Documentation

◆ __construct()

PPTemplateFrame_Hash::__construct (   $preprocessor,
  $parent = false,
  $numberedArgs = [],
  $namedArgs = [],
  $title = false 
)
Parameters
Preprocessor$preprocessor
bool | PPFrame$parent
array$numberedArgs
array$namedArgs
bool | Title$title

Definition at line 1456 of file Preprocessor_Hash.php.

Member Function Documentation

◆ __toString()

PPTemplateFrame_Hash::__toString ( )

Reimplemented from PPFrame_Hash.

Definition at line 1476 of file Preprocessor_Hash.php.

◆ cachedExpand()

PPTemplateFrame_Hash::cachedExpand (   $key,
  $root,
  $flags = 0 
)
Exceptions
MWException
Parameters
string | int$key
string | PPNode$root
int$flags
Returns
string

Reimplemented from PPFrame_Hash.

Definition at line 1500 of file Preprocessor_Hash.php.

◆ getArgument()

PPTemplateFrame_Hash::getArgument (   $name)
Parameters
int | string$name
Returns
string|bool

Reimplemented from PPFrame_Hash.

Definition at line 1593 of file Preprocessor_Hash.php.

◆ getArguments()

PPTemplateFrame_Hash::getArguments ( )
Returns
array

Reimplemented from PPFrame_Hash.

Definition at line 1523 of file Preprocessor_Hash.php.

◆ getNamedArgument()

PPTemplateFrame_Hash::getNamedArgument (   $name)
Parameters
string$name
Returns
string|bool

Definition at line 1577 of file Preprocessor_Hash.php.

◆ getNamedArguments()

PPTemplateFrame_Hash::getNamedArguments ( )
Returns
array

Reimplemented from PPFrame_Hash.

Definition at line 1547 of file Preprocessor_Hash.php.

◆ getNumberedArgument()

PPTemplateFrame_Hash::getNumberedArgument (   $index)
Parameters
int$index
Returns
string|bool

Definition at line 1559 of file Preprocessor_Hash.php.

◆ getNumberedArguments()

PPTemplateFrame_Hash::getNumberedArguments ( )
Returns
array

Reimplemented from PPFrame_Hash.

Definition at line 1536 of file Preprocessor_Hash.php.

◆ isEmpty()

PPTemplateFrame_Hash::isEmpty ( )

Returns true if there are no arguments in this frame.

Returns
bool

Reimplemented from PPFrame_Hash.

Definition at line 1516 of file Preprocessor_Hash.php.

◆ isTemplate()

PPTemplateFrame_Hash::isTemplate ( )

Return true if the frame is a template frame.

Returns
bool

Reimplemented from PPFrame_Hash.

Definition at line 1606 of file Preprocessor_Hash.php.

◆ setTTL()

PPTemplateFrame_Hash::setTTL (   $ttl)

Set the TTL.

Parameters
int$ttl

Reimplemented from PPFrame_Hash.

Definition at line 1615 of file Preprocessor_Hash.php.

◆ setVolatile()

PPTemplateFrame_Hash::setVolatile (   $flag = true)

Set the volatile flag.

Parameters
bool$flag

Reimplemented from PPFrame_Hash.

Definition at line 1610 of file Preprocessor_Hash.php.

Member Data Documentation

◆ $namedArgs

PPTemplateFrame_Hash::$namedArgs

Definition at line 1446 of file Preprocessor_Hash.php.

◆ $namedExpansionCache

PPTemplateFrame_Hash::$namedExpansionCache

Definition at line 1447 of file Preprocessor_Hash.php.

◆ $numberedArgs

PPTemplateFrame_Hash::$numberedArgs

Definition at line 1446 of file Preprocessor_Hash.php.

◆ $numberedExpansionCache

PPTemplateFrame_Hash::$numberedExpansionCache

Definition at line 1447 of file Preprocessor_Hash.php.

◆ $parent

PPTemplateFrame_Hash::$parent

Definition at line 1446 of file Preprocessor_Hash.php.


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