Méthode | Description | |
---|---|---|
__sleep ( ) | ||
add ( $parent, $node, $object = '' ) | Add a new node to the object tree graph. | |
collect ( ) : array | ||
isEmpty ( ) : boolean |
Méthode | Description | |
---|---|---|
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. |
public add ( $parent, $node, $object = '' ) |
protected collectChildren ( $parent, &$nodes ) |
protected getCollection ( ) : array | ||
Résultat | array | object collection. |
protected hasChildren ( &$nodes ) : boolean | ||
Résultat | boolean | true if all nodes are leaf nodes, false otherwise |
protected onChildNodesVisited ( $parent, $nodes ) |