메소드 | 설명 | |
---|---|---|
__sleep ( ) | ||
add ( $parent, $node, $object = '' ) | Add a new node to the object tree graph. | |
collect ( ) : array | ||
isEmpty ( ) : boolean |
메소드 | 설명 | |
---|---|---|
addNode ( &$childs, $parent, $node ) : boolean | Find the parent node and add the new node as its child. | |
collectChildren ( $parent, &$nodes ) | Visit all the child nodes and collect them by removing. | |
getCollection ( ) : array | ||
hasChildren ( &$nodes ) : boolean | ||
onChildNodesVisited ( $parent, $nodes ) | Set the object properties for all the child nodes visited. |
protected collectChildren ( $parent, &$nodes ) |
protected hasChildren ( &$nodes ) : boolean | ||
리턴 | boolean | true if all nodes are leaf nodes, false otherwise |
protected onChildNodesVisited ( $parent, $nodes ) |