Interface: Doctrine_Node_Interface
Source Location: /Doctrine/Node/Interface.phpInterface Doctrine_Node_Interface
Doctrine_Node_Interface Located in /Doctrine/Node/Interface.php [line 32] Author(s):
|
|
void | addChild() | adds node as last child of record |
void | delete() | deletes node and it's descendants |
object Doctrine_Collection | getAncestors() | gets ancestors for node |
array | getChildren() | gets children for node (direct descendants only) |
iterator | getDescendants() | gets descendants for node (direct descendants only) |
object Doctrine_Record | getFirstChild() | gets record of first child or empty record |
object Doctrine_Record | getLastChild() | gets record of last child or empty record |
int | getLevel() | gets level (depth) of node in the tree |
object Doctrine_Record | getNextSibling() | gets record of next sibling or empty record |
int | getNumberChildren() | gets number of children (direct descendants) |
int | getNumberDescendants() | gets number of descendants (children and their children) |
object Doctrine_Record | getParent() | gets record of parent or empty record |
string | getPath() | gets path to node from root, uses record::toString() method to get node names |
object Doctrine_Record | getPrevSibling() | gets record of prev sibling or empty record |
array | getSiblings() | gets siblings for node |
bool | hasChildren() | test if node has children |
bool | hasNextSibling() | test if node has next sibling |
bool | hasParent() | test if node has parent |
bool | hasPrevSibling() | test if node has previous sibling |
bool | insertAsFirstChildOf() | inserts node as first child of dest record |
bool | insertAsLastChildOf() | inserts node as first child of dest record |
bool | insertAsNextSiblingOf() | inserts node as next sibling of dest record |
bool | insertAsParentOf() | inserts node as parent of dest record |
bool | insertAsPrevSiblingOf() | inserts node as previous sibling of dest record |
bool | isDescendantOf() | determines if node is child of subject node |
bool | isDescendantOfOrEqualTo() | determines if node is child of or sibling to subject node |
bool | isEqualTo() | determines if node is equal to subject node |
bool | isLeaf() | determines if node is leaf |
bool | isRoot() | determines if node is root |
bool | isValidNode() | determines if node is valid |
void | moveAsFirstChildOf() | moves node as first child of dest record |
void | moveAsLastChildOf() | moves node as last child of dest record |
void | moveAsNextSiblingOf() | moves node as next sibling of dest record |
void | moveAsPrevSiblingOf() | moves node as prev sibling of dest record |
|
adds node as last child of record
Parameters:Doctrine_Record | $record: |
API Tags:
Access: | public |
|
gets ancestors for node
API Tags:
Access: | public |
|
gets children for node (direct descendants only)
API Tags:
Return: | array of sibling Doctrine_Record objects |
Access: | public |
|
gets descendants for node (direct descendants only)
API Tags:
Return: | iterator to traverse descendants from node |
Access: | public |
|
gets record of first child or empty record
API Tags:
Access: | public |
|
gets record of last child or empty record
API Tags:
Access: | public |
|
gets level (depth) of node in the tree
API Tags:
Access: | public |
|
gets record of next sibling or empty record
API Tags:
Access: | public |
|
gets number of children (direct descendants)
API Tags:
Access: | public |
|
gets number of descendants (children and their children)
API Tags:
Access: | public |
|
gets record of parent or empty record
API Tags:
Access: | public |
|
gets path to node from root, uses record::toString() method to get node names
Parameters:string | $seperator: | path seperator |
bool | $includeNode: | whether or not to include node at end of path |
API Tags:
Return: | string representation of path |
Access: | public |
|
gets record of prev sibling or empty record
API Tags:
Access: | public |
|
gets siblings for node
Parameters:$includeNode: |
API Tags:
Return: | array of sibling Doctrine_Record objects |
Access: | public |
|
test if node has children
API Tags:
Access: | public |
|
test if node has next sibling
API Tags:
Access: | public |
|
test if node has previous sibling
API Tags:
Access: | public |
|
inserts node as first child of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
inserts node as first child of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
inserts node as next sibling of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
inserts node as parent of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
inserts node as previous sibling of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
determines if node is child of subject node
Parameters:Doctrine_Record | $subj: |
API Tags:
Access: | public |
|
determines if node is child of or sibling to subject node
Parameters:Doctrine_Record | $subj: |
API Tags:
Access: | public |
|
determines if node is equal to subject node
Parameters:Doctrine_Record | $subj: |
API Tags:
Access: | public |
|
determines if node is valid
API Tags:
Access: | public |
|
moves node as first child of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
moves node as last child of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
moves node as next sibling of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |
|
moves node as prev sibling of dest record
Parameters:Doctrine_Record | $dest: |
API Tags:
Access: | public |