interface NodeInterface

Interface NodeInterface

Properties

string $d stringid
string $itle stringtitle
string $arentId stringparentId

Methods

string|int
getNodeIdentifier()

Get the unique identifier for the node

string
getNodeIdentifierName()

Get the unique identifier name for the node

string|int
getParentNodeIdentifier()

Get the parent identifier for the node

void
setParent(NodeInterface $node)

Set parent node

getParent()

Return the parent node or null

void
addChild(NodeInterface $node)

Add child node

array
getChildren()

Return the child node items or empty array

void
setChildren(NodeInterface[] $children = array())

Set child nodes

bool
hasChild()

Check having child and return the boolean result.

array
getBreadcrumbs()

get breadcrumbs

string
getOrderKeyName()

Get the order key name for model

Details

at line 37
string|int getNodeIdentifier()

Get the unique identifier for the node

Return Value

string|int

at line 44
string getNodeIdentifierName()

Get the unique identifier name for the node

Return Value

string

at line 51
string|int getParentNodeIdentifier()

Get the parent identifier for the node

Return Value

string|int

at line 59
void setParent(NodeInterface $node)

Set parent node

Parameters

NodeInterface $node parent node

Return Value

void

at line 66
NodeInterface getParent()

Return the parent node or null

Return Value

NodeInterface

at line 74
void addChild(NodeInterface $node)

Add child node

Parameters

NodeInterface $node child node

Return Value

void

at line 81
array getChildren()

Return the child node items or empty array

Return Value

array

at line 89
void setChildren(NodeInterface[] $children = array())

Set child nodes

Parameters

NodeInterface[] $children children node interfaces

Return Value

void

at line 96
bool hasChild()

Check having child and return the boolean result.

Return Value

bool

at line 103
array getBreadcrumbs()

get breadcrumbs

Return Value

array

at line 110
string getOrderKeyName()

Get the order key name for model

Return Value

string