Node
class Node
A Node for MenuTree
Methods
__construct()
Constructor
void
boolean
hasParent()
Test if this node has a parent
boolean
hasChildren()
Test if this node has children
Node[]
getChildren()
Get the children of this node
integer
getLevel()
Find the current node depth in the tree hierarchy
boolean
isRoot()
Check whether the object instance node is the root node
void
setActive(
bool $active)
Set the active state on or off
void
setParams(
Registry $params)
set the params array
mixed
getParam(
string $key)
Get the param value from the node params
mixed
get(
string $name)
Get an attribute value