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

List of all members.

Public Member Functions

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

Static Public Member Functions

static newWithText ($name, $text)

Public Attributes

 $firstChild
 $lastChild
 $name
 $nextSibling

Detailed Description

Definition at line 1478 of file Preprocessor_Hash.php.


Constructor & Destructor Documentation

Definition at line 1481 of file Preprocessor_Hash.php.

References $name.


Member Function Documentation

Definition at line 1486 of file Preprocessor_Hash.php.

Definition at line 1514 of file Preprocessor_Hash.php.

Returns:
PPNode_Hash_Array

Implements PPNode.

Definition at line 1526 of file Preprocessor_Hash.php.

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

References $name.

Get the first child of a tree node.

False if there isn't one.

Returns:
PPNode

Implements PPNode.

Definition at line 1534 of file Preprocessor_Hash.php.

Returns:
bool

Implements PPNode.

Definition at line 1555 of file Preprocessor_Hash.php.

Returns:
string

Implements PPNode.

Definition at line 1570 of file Preprocessor_Hash.php.

Get the next sibling of any node.

False if there isn't one

Implements PPNode.

Definition at line 1538 of file Preprocessor_Hash.php.

Parameters:
$i
Returns:
bool

Implements PPNode.

Definition at line 1563 of file Preprocessor_Hash.php.

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

Definition at line 1508 of file Preprocessor_Hash.php.

References $name.

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

Here is the caller graph for this function:

Split a <part> node into an associative array containing: name PPNode name index String index value PPNode value.

Returns:
array

Implements PPNode.

Definition at line 1582 of file Preprocessor_Hash.php.

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.

Returns:
array

Implements PPNode.

Definition at line 1615 of file Preprocessor_Hash.php.

Split an <h> node.

Returns:
array

Implements PPNode.

Definition at line 1642 of file Preprocessor_Hash.php.

Split a <template> or <tplarg> node.

Returns:
array

Definition at line 1668 of file Preprocessor_Hash.php.


Member Data Documentation

PPNode_Hash_Tree::$firstChild

Definition at line 1479 of file Preprocessor_Hash.php.

PPNode_Hash_Tree::$lastChild

Definition at line 1479 of file Preprocessor_Hash.php.

PPNode_Hash_Tree::$name

Definition at line 1479 of file Preprocessor_Hash.php.

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

PPNode_Hash_Tree::$nextSibling

Definition at line 1479 of file Preprocessor_Hash.php.


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