Public Member Functions | |
__construct ($name) | |
__toString () | |
addChild ($node) | |
getChildren () | |
Get an array-type node containing the children of this node. | |
getFirstChild () | |
Get the first child of a tree node. | |
getNextSibling () | |
Get the next sibling of any node. | |
getChildrenOfType ($name) | |
Get all children of this tree node which have a given name. | |
getLength () | |
Returns the length of the array, or false if this is not an array-type node. | |
item ($i) | |
Returns an item of an array-type node. | |
getName () | |
Get the name of this node. | |
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 | |
$name | |
$firstChild | |
$lastChild | |
$nextSibling |
Definition at line 1326 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::__construct | ( | $ | name | ) |
PPNode_Hash_Tree::__toString | ( | ) |
Definition at line 1334 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::addChild | ( | $ | node | ) |
Definition at line 1357 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::getChildren | ( | ) |
Get an array-type node containing the children of this node.
Returns false if this is not a tree node.
Implements PPNode.
Definition at line 1366 of file Preprocessor_Hash.php.
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 1382 of file Preprocessor_Hash.php.
References $name.
PPNode_Hash_Tree::getFirstChild | ( | ) |
Get the first child of a tree node.
False if there isn't one.
Implements PPNode.
Definition at line 1374 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::getLength | ( | ) |
Returns the length of the array, or false if this is not an array-type node.
Implements PPNode.
Definition at line 1392 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::getName | ( | ) |
Get the name of this node.
The following names are defined here:
h A heading node. template A double-brace node. tplarg A triple-brace node. title The first argument to a template or tplarg node. part Subsequent arguments to a template or tplarg node. nodelist An array-type node
The subclass may define various other names for tree and leaf nodes.
Implements PPNode.
Definition at line 1395 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::getNextSibling | ( | ) |
Get the next sibling of any node.
False if there isn't one
Implements PPNode.
Definition at line 1378 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::item | ( | $ | i | ) |
Returns an item of an array-type node.
Implements PPNode.
Definition at line 1393 of file Preprocessor_Hash.php.
static PPNode_Hash_Tree::newWithText | ( | $ | name, | |
$ | text | |||
) | [static] |
Definition at line 1351 of file Preprocessor_Hash.php.
References $name, $obj, and $text.
Referenced by PPDAccum_Hash::addNodeWithText(), and Preprocessor_Hash::preprocessToObj().
PPNode_Hash_Tree::splitArg | ( | ) |
Split a <part> node into an associative array containing: name PPNode name index String index value PPNode value.
Implements PPNode.
Definition at line 1405 of file Preprocessor_Hash.php.
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.
Implements PPNode.
Definition at line 1436 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::splitHeading | ( | ) |
PPNode_Hash_Tree::splitTemplate | ( | ) |
PPNode_Hash_Tree::$firstChild |
Definition at line 1327 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::$lastChild |
Definition at line 1327 of file Preprocessor_Hash.php.
PPNode_Hash_Tree::$name |
Definition at line 1327 of file Preprocessor_Hash.php.
Referenced by __construct(), getChildrenOfType(), and newWithText().
PPNode_Hash_Tree::$nextSibling |
Definition at line 1327 of file Preprocessor_Hash.php.