|
Doctrine 1.2.4
|
Inherited by Doctrine_Node_AdjacencyList, and Doctrine_Node_MaterializedPath.
Public Member Functions | |
| addChild (Doctrine_Record $record) | |
| delete () | |
| getAncestors () | |
| getChildren () | |
| getDescendants () | |
| getFirstChild () | |
| getLastChild () | |
| getLevel () | |
| getNextSibling () | |
| getNumberChildren () | |
| getNumberDescendants () | |
| getParent () | |
| getPath ($seperator= ' > ', $includeNode=false) | |
| getPrevSibling () | |
| getSiblings ($includeNode=false) | |
| hasChildren () | |
| hasNextSibling () | |
| hasParent () | |
| hasPrevSibling () | |
| insertAsFirstChildOf (Doctrine_Record $dest) | |
| insertAsLastChildOf (Doctrine_Record $dest) | |
| insertAsNextSiblingOf (Doctrine_Record $dest) | |
| insertAsParentOf (Doctrine_Record $dest) | |
| insertAsPrevSiblingOf (Doctrine_Record $dest) | |
| isDescendantOf (Doctrine_Record $subj) | |
| isDescendantOfOrEqualTo (Doctrine_Record $subj) | |
| isEqualTo (Doctrine_Record $subj) | |
| isLeaf () | |
| isRoot () | |
| isValidNode () | |
| moveAsFirstChildOf (Doctrine_Record $dest) | |
| moveAsLastChildOf (Doctrine_Record $dest) | |
| moveAsNextSiblingOf (Doctrine_Record $dest) | |
| moveAsPrevSiblingOf (Doctrine_Record $dest) | |
Definition at line 33 of file Interface.php.
| Doctrine_Node_Interface::addChild | ( | Doctrine_Record | $record | ) |
adds node as last child of record
| Doctrine_Node_Interface::delete | ( | ) |
deletes node and it's descendants
| Doctrine_Node_Interface::getAncestors | ( | ) |
gets ancestors for node
| Doctrine_Node_Interface::getChildren | ( | ) |
gets children for node (direct descendants only)
| Doctrine_Node_Interface::getDescendants | ( | ) |
gets descendants for node (direct descendants only)
| Doctrine_Node_Interface::getFirstChild | ( | ) |
gets record of first child or empty record
| Doctrine_Node_Interface::getLastChild | ( | ) |
gets record of last child or empty record
| Doctrine_Node_Interface::getLevel | ( | ) |
gets level (depth) of node in the tree
| Doctrine_Node_Interface::getNextSibling | ( | ) |
gets record of next sibling or empty record
| Doctrine_Node_Interface::getNumberChildren | ( | ) |
gets number of children (direct descendants)
| Doctrine_Node_Interface::getNumberDescendants | ( | ) |
gets number of descendants (children and their children)
| Doctrine_Node_Interface::getParent | ( | ) |
gets record of parent or empty record
| Doctrine_Node_Interface::getPath | ( | $seperator = ', |
|
| ' | , | ||
$includeNode = false |
|||
| ) |
gets path to node from root, uses record::toString() method to get node names
| string | $seperator | path seperator |
| bool | $includeNode | whether or not to include node at end of path |
| Doctrine_Node_Interface::getPrevSibling | ( | ) |
gets record of prev sibling or empty record
| Doctrine_Node_Interface::getSiblings | ( | $includeNode = false | ) |
gets siblings for node
| Doctrine_Node_Interface::hasChildren | ( | ) |
test if node has children
| Doctrine_Node_Interface::hasNextSibling | ( | ) |
test if node has next sibling
| Doctrine_Node_Interface::hasParent | ( | ) |
test if node has parent
| Doctrine_Node_Interface::hasPrevSibling | ( | ) |
test if node has previous sibling
| Doctrine_Node_Interface::insertAsFirstChildOf | ( | Doctrine_Record | $dest | ) |
inserts node as first child of dest record
| Doctrine_Node_Interface::insertAsLastChildOf | ( | Doctrine_Record | $dest | ) |
inserts node as first child of dest record
| Doctrine_Node_Interface::insertAsNextSiblingOf | ( | Doctrine_Record | $dest | ) |
inserts node as next sibling of dest record
| Doctrine_Node_Interface::insertAsParentOf | ( | Doctrine_Record | $dest | ) |
inserts node as parent of dest record
| Doctrine_Node_Interface::insertAsPrevSiblingOf | ( | Doctrine_Record | $dest | ) |
inserts node as previous sibling of dest record
| Doctrine_Node_Interface::isDescendantOf | ( | Doctrine_Record | $subj | ) |
determines if node is child of subject node
| Doctrine_Node_Interface::isDescendantOfOrEqualTo | ( | Doctrine_Record | $subj | ) |
determines if node is child of or sibling to subject node
| Doctrine_Node_Interface::isEqualTo | ( | Doctrine_Record | $subj | ) |
determines if node is equal to subject node
| Doctrine_Node_Interface::isLeaf | ( | ) |
determines if node is leaf
| Doctrine_Node_Interface::isRoot | ( | ) |
determines if node is root
| Doctrine_Node_Interface::isValidNode | ( | ) |
determines if node is valid
| Doctrine_Node_Interface::moveAsFirstChildOf | ( | Doctrine_Record | $dest | ) |
moves node as first child of dest record
| Doctrine_Node_Interface::moveAsLastChildOf | ( | Doctrine_Record | $dest | ) |
moves node as last child of dest record
| Doctrine_Node_Interface::moveAsNextSiblingOf | ( | Doctrine_Record | $dest | ) |
moves node as next sibling of dest record
| Doctrine_Node_Interface::moveAsPrevSiblingOf | ( | Doctrine_Record | $dest | ) |
moves node as prev sibling of dest record