PHP 인터페이스 Xpressengine\Support\Tree\NodeInterface

저자: XE Developers ([email protected])
파일 보기 프로젝트 열기: xpressengine/xpressengine 0 사용 예제들

공개 메소드들

메소드 설명
addChild ( Xpressengine\Support\Tree\NodeInterface $node ) : void Add child node
getBreadcrumbs ( ) : array get breadcrumbs
getChildren ( ) : array Return the child node items or empty array
getNodeIdentifier ( ) : string | integer Get the unique identifier for the node
getNodeIdentifierName ( ) : string Get the unique identifier name for the node
getOrderKeyName ( ) : string Get the order key name for model
getParent ( ) : Xpressengine\Support\Tree\NodeInterface Return the parent node or null
getParentNodeIdentifier ( ) : string | integer Get the parent identifier for the node
hasChild ( ) : boolean Check having child and return the boolean result.
setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void Set child nodes
setParent ( Xpressengine\Support\Tree\NodeInterface $node ) : void Set parent node

메소드 상세

addChild() 공개 메소드

Add child node
public addChild ( Xpressengine\Support\Tree\NodeInterface $node ) : void
$node Xpressengine\Support\Tree\NodeInterface child node
리턴 void

getBreadcrumbs() 공개 메소드

get breadcrumbs
public getBreadcrumbs ( ) : array
리턴 array

getChildren() 공개 메소드

Return the child node items or empty array
public getChildren ( ) : array
리턴 array

getNodeIdentifier() 공개 메소드

Get the unique identifier for the node
public getNodeIdentifier ( ) : string | integer
리턴 string | integer

getNodeIdentifierName() 공개 메소드

Get the unique identifier name for the node
public getNodeIdentifierName ( ) : string
리턴 string

getOrderKeyName() 공개 메소드

Get the order key name for model
public getOrderKeyName ( ) : string
리턴 string

getParent() 공개 메소드

Return the parent node or null
public getParent ( ) : Xpressengine\Support\Tree\NodeInterface
리턴 Xpressengine\Support\Tree\NodeInterface

getParentNodeIdentifier() 공개 메소드

Get the parent identifier for the node

hasChild() 공개 메소드

Check having child and return the boolean result.
public hasChild ( ) : boolean
리턴 boolean

setChildren() 공개 메소드

Set child nodes
public setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void
$children Xpressengine\Support\Tree\NodeInterface[] children node interfaces
리턴 void

setParent() 공개 메소드

Set parent node
public setParent ( Xpressengine\Support\Tree\NodeInterface $node ) : void
$node Xpressengine\Support\Tree\NodeInterface parent node
리턴 void