PHP 클래스 Prado\Data\SqlMap\Statements\TSqlMapObjectCollectionTree

Maps object collection graphs as trees. Nodes in the collection can be {@link add} using parent relationships. The object collections can be build using the {@link collect} method.
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__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.

메소드 상세

__sleep() 공개 메소드

public __sleep ( )

add() 공개 메소드

Add a new node to the object tree graph.
public add ( $parent, $node, $object = '' )

addNode() 보호된 메소드

Find the parent node and add the new node as its child.
protected addNode ( &$childs, $parent, $node ) : boolean
리턴 boolean true if parent node is found.

collect() 공개 메소드

public collect ( ) : array
리턴 array object collection

collectChildren() 보호된 메소드

Visit all the child nodes and collect them by removing.
protected collectChildren ( $parent, &$nodes )

getCollection() 보호된 메소드

protected getCollection ( ) : array
리턴 array object collection.

hasChildren() 보호된 메소드

protected hasChildren ( &$nodes ) : boolean
리턴 boolean true if all nodes are leaf nodes, false otherwise

isEmpty() 공개 메소드

public isEmpty ( ) : boolean
리턴 boolean true if the graph is empty

onChildNodesVisited() 보호된 메소드

Set the object properties for all the child nodes visited.
protected onChildNodesVisited ( $parent, $nodes )