A Simple PHP Tree class that allows storing associative data along with each node.
Located in /class.cms_tree.php (line 49)
| Class | Description |
|---|---|
| cms_content_tree | A tree class that allows backward compatibility (somewhat) to the old Tree class used in CMSMS versions prior to 1.9, and provides content retrieval abilities, with interface into the content cache. |
Construct a new tree, or node of a tree.
Add the specified node as a child to this node.
Count the number of direct children to this node.
Count the number of siblings that this node has.
Find a tree node given a specfied tag and value.
Return the children of this node.
Find the depth of the current node.
This method counts all of the parents in the tree until there are no more parents.
Retrieve a tag for this node.
Test if this node has children.
Remove this node
This is a convenience method that calls remove_node on the current object.
Remove the specified node from the tree.
Search through the children of this node (and optionally recursively through the tree) for the specified node. If found, remove it.
Use this method with caution, as it is very easy to break your tree, corrupt memory and have tree nodes hanging out there with no parents.
Set a tag value into this node
Documentation generated on Sun, 12 Aug 2012 08:38:27 -0600 by phpDocumentor 1.3.2