MediaWiki  1.23.0
PPNode_Hash_Tree Class Reference
Inheritance diagram for PPNode_Hash_Tree:
Collaboration diagram for PPNode_Hash_Tree:

Public Member Functions

 __construct ( $name)
 
 __toString ()
 
 addChild ( $node)
 
 getChildren ()
 
 getChildrenOfType ( $name)
 Get all children of this tree node which have a given name. More...
 
 getFirstChild ()
 Get the first child of a tree node. More...
 
 getLength ()
 
 getName ()
 
 getNextSibling ()
 Get the next sibling of any node. More...
 
 item ( $i)
 
 splitArg ()
 Split a "<part>" node into an associative array containing: More...
 
 splitExt ()
 Split an "<ext>" node into an associative array containing name, attr, inner and close All values in the resulting array are PPNodes. More...
 
 splitHeading ()
 Split an "<h>" node. More...
 
 splitTemplate ()
 Split a "<template>" or "<tplarg>" node. More...
 

Static Public Member Functions

static newWithText ( $name, $text)
 

Public Attributes

 $firstChild
 
 $lastChild
 
 $name
 
 $nextSibling
 

Detailed Description

Definition at line 1536 of file Preprocessor_Hash.php.

Constructor & Destructor Documentation

◆ __construct()

PPNode_Hash_Tree::__construct (   $name)

Definition at line 1539 of file Preprocessor_Hash.php.

References $name, and name.

Member Function Documentation

◆ __toString()

PPNode_Hash_Tree::__toString ( )

Definition at line 1544 of file Preprocessor_Hash.php.

References $attribs.

◆ addChild()

PPNode_Hash_Tree::addChild (   $node)

Definition at line 1572 of file Preprocessor_Hash.php.

◆ getChildren()

PPNode_Hash_Tree::getChildren ( )
Returns
PPNode_Hash_Array

Implements PPNode.

Definition at line 1584 of file Preprocessor_Hash.php.

References array().

◆ getChildrenOfType()

PPNode_Hash_Tree::getChildrenOfType (   $type)

Get all children of this tree node which have a given name.

Returns an array-type node, or false if this is not a tree node.

Implements PPNode.

Definition at line 1600 of file Preprocessor_Hash.php.

References $name, and array().

◆ getFirstChild()

PPNode_Hash_Tree::getFirstChild ( )

Get the first child of a tree node.

False if there isn't one.

Returns
PPNode

Implements PPNode.

Definition at line 1592 of file Preprocessor_Hash.php.

References $firstChild.

◆ getLength()

PPNode_Hash_Tree::getLength ( )
Returns
bool

Implements PPNode.

Definition at line 1613 of file Preprocessor_Hash.php.

◆ getName()

PPNode_Hash_Tree::getName ( )
Returns
string

Implements PPNode.

Definition at line 1628 of file Preprocessor_Hash.php.

References $name.

◆ getNextSibling()

PPNode_Hash_Tree::getNextSibling ( )

Get the next sibling of any node.

False if there isn't one

Implements PPNode.

Definition at line 1596 of file Preprocessor_Hash.php.

References $nextSibling.

◆ item()

PPNode_Hash_Tree::item (   $i)
Parameters
$i
Returns
bool

Implements PPNode.

Definition at line 1621 of file Preprocessor_Hash.php.

◆ newWithText()

static PPNode_Hash_Tree::newWithText (   $name,
  $text 
)
static
Parameters
$name
$text
Returns
PPNode_Hash_Tree

Definition at line 1566 of file Preprocessor_Hash.php.

References $name.

Referenced by PPDAccum_Hash\addNodeWithText(), and Preprocessor_Hash\preprocessToObj().

◆ splitArg()

PPNode_Hash_Tree::splitArg ( )

Split a "<part>" node into an associative array containing:

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1641 of file Preprocessor_Hash.php.

References array().

◆ splitExt()

PPNode_Hash_Tree::splitExt ( )

Split an "<ext>" node into an associative array containing name, attr, inner and close All values in the resulting array are PPNodes.

Inner and close are optional.

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1675 of file Preprocessor_Hash.php.

References array().

◆ splitHeading()

PPNode_Hash_Tree::splitHeading ( )

Split an "<h>" node.

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1703 of file Preprocessor_Hash.php.

References array(), and name.

◆ splitTemplate()

PPNode_Hash_Tree::splitTemplate ( )

Split a "<template>" or "<tplarg>" node.

Exceptions
MWException
Returns
array

Definition at line 1730 of file Preprocessor_Hash.php.

References array().

Member Data Documentation

◆ $firstChild

PPNode_Hash_Tree::$firstChild

Definition at line 1537 of file Preprocessor_Hash.php.

Referenced by getFirstChild().

◆ $lastChild

PPNode_Hash_Tree::$lastChild

Definition at line 1537 of file Preprocessor_Hash.php.

◆ $name

PPNode_Hash_Tree::$name

Definition at line 1537 of file Preprocessor_Hash.php.

Referenced by __construct(), getChildrenOfType(), getName(), and newWithText().

◆ $nextSibling

PPNode_Hash_Tree::$nextSibling

Definition at line 1537 of file Preprocessor_Hash.php.

Referenced by getNextSibling().


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