PHP Interface Xpressengine\Support\Tree\NodeInterface

Author: XE Developers ([email protected])
Afficher le fichier Open project: xpressengine/xpressengine Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

addChild() public méthode

Add child node
public addChild ( Xpressengine\Support\Tree\NodeInterface $node ) : void
$node Xpressengine\Support\Tree\NodeInterface child node
Résultat void

getBreadcrumbs() public méthode

get breadcrumbs
public getBreadcrumbs ( ) : array
Résultat array

getChildren() public méthode

Return the child node items or empty array
public getChildren ( ) : array
Résultat array

getNodeIdentifier() public méthode

Get the unique identifier for the node
public getNodeIdentifier ( ) : string | integer
Résultat string | integer

getNodeIdentifierName() public méthode

Get the unique identifier name for the node
public getNodeIdentifierName ( ) : string
Résultat string

getOrderKeyName() public méthode

Get the order key name for model
public getOrderKeyName ( ) : string
Résultat string

getParent() public méthode

Return the parent node or null
public getParent ( ) : Xpressengine\Support\Tree\NodeInterface
Résultat Xpressengine\Support\Tree\NodeInterface

getParentNodeIdentifier() public méthode

Get the parent identifier for the node
public getParentNodeIdentifier ( ) : string | integer
Résultat string | integer

hasChild() public méthode

Check having child and return the boolean result.
public hasChild ( ) : boolean
Résultat boolean

setChildren() public méthode

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

setParent() public méthode

Set parent node
public setParent ( Xpressengine\Support\Tree\NodeInterface $node ) : void
$node Xpressengine\Support\Tree\NodeInterface parent node
Résultat void