Method |
Description |
|
addChild ( AbstractNode $child ) : boolean |
Adds a child node to this node and returns the id of the child for this
parent. |
|
countChildren ( ) : integer |
Counts children |
|
firstChild ( ) : AbstractNode |
Shortcut to return the first child. |
|
getChild ( integer $id ) : AbstractNode |
Returns the child by id. |
|
getChildren ( ) : array |
Returns a new array of child nodes |
|
hasChildren ( ) : boolean |
Checks if this node has children. |
|
isChild ( integer $id ) : boolean |
Checks if the given node id is a child of the
current node. |
|
isDescendant ( integer $id ) : boolean |
Checks if the given node id is a descendant of the
current node. |
|
lastChild ( ) : AbstractNode |
Attempts to get the last child. |
|
nextChild ( integer $id ) : AbstractNode |
Attempts to get the next child. |
|
previousChild ( integer $id ) : AbstractNode |
Attempts to get the previous child. |
|
propagateEncoding ( stringEncode\Encode $encode ) : void |
Sets the encoding class to this node and propagates it
to all its children. |
|
removeChild ( integer $id ) |
Removes the child by id. |
|
replaceChild ( integer $childId, AbstractNode $newChild ) |
Removes the child with id $childId and replace it with the new child
$newChild. |
|
setParent ( InnerNode $parent ) |
Sets the parent node. |
|