The interface for the Tree data structure used by the Hierarchy.
Located in /harmoni/core/oki2/hierarchy/tree/Tree.interface.php (line 13)
Class | Description |
---|---|
Tree | The Tree data structure used by the Hierarchy. |
Adds the specified node to the hierarchy and makes it a child of the specified parent. If the parent is not specified, then it makes the node a root.
Delete the node from the tree. This can only be done if the node has no parents and no children.
Simply returns all nodes of this hierarchy in an array in no particular order.
Returns all the ancestors of the given node.
Returns the node with the specified id. If it does not exist, return
.
- null
.
- null
Returns the size (number of nodes) in this hierarchy.
Returns the subtree rooted at the specified node (excluding the root).
Returns
if the node with the specified id (string) exists.
- true
if the node with the specified id (string) exists.
- true
Traverses the hierarchy and returns all the nodes in an array. The traversal is a pre-order traversal starting from the specified node.
Documentation generated on Wed, 19 Sep 2007 10:27:33 -0400 by phpDocumentor 1.3.0RC3