Gadget_Tree_Node
Located in /Gadget/Tree/Node.php (line 27)
Class | Description |
---|---|
Gadget_Tree_FS_Node | Gadget_Tree_FS_Node |
Gadget_Tree_Menu_Node | Gadget_Tree_Menu_Node |
Gadget_Tree_XML_Node | Gadget_Tree_XML_Node |
Childs
Data
Following Node
Full Path
Meta
Name
Parent Node
Preceding Node
Name of Class
Gadget_Tree_Node
Add Child
Add Data
Add Meta
Add New Child
Ancestor
Returns an array of parent nodes.
Ancestor or Self
Returns array of the node itself and parent nodes.
Child
Child At
Count
Depth
Descendant
Descendant or Self
First Child
Following
Following Sibling
Full Path
Get Children
This returns the whole tree below this node. Use child() if you want to get the first level of children.
Get Data
Get Meta
Get Name
Insert Child
Last Child
Example:
- if (!isset($child = &$node->lastChild()) {
- $child = &$node->addNewChild('one and only child');
- }
- $child->addNewChild('a new child of the last child');
Link Following
Link Preceding
Parent
Position
Preceding
Preceding Sibling
Remove Child
Replace Child
Replace a direct child of this node with another node. Returns PEAR_Error GADGET_TREE_E_CHILD_NOT_FOUND if there's no child at the specified position.
Reset Links
Set Child
Set Data
Set Meta
Set Parent
To Array
Documentation generated on Sun, 03 Jul 2005 12:45:58 +0200 by phpDocumentor 1.3.0RC3