PHP Интерфейс Xpressengine\Support\Tree\NodeInterface

Автор: XE Developers ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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
public getParentNodeIdentifier ( ) : string | integer
Результат string | integer

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