Property | Type | Description | |
---|---|---|---|
$rawNodes | NodeInterface[] | ||
$treeNodes | NodeInterface[] |
Method | Description | |
---|---|---|
__construct ( Xpressengine\Support\Tree\NodeInterface[] $rawNodes = [] ) | ||
add ( Xpressengine\Support\Tree\NodeInterface $node ) | Adds a node to this node | |
getNodes ( ) : |
getRawNodes | |
getTreeNodes ( ) : |
getTree | |
jsonSerialize ( ) : mixed |
(PHP 5 >= 5.4.0) Specify data which should be serialized to JSON |
|
make ( Xpressengine\Support\Tree\NodeInterface[] $rawNodes = [] ) : static | Make Tree instance | |
offsetExists ( mixed $offset ) : boolean | Implementation of ArrayAccess offsetExists() Whether a offset exists | |
offsetGet ( mixed $offset ) : mixed | Implementation of ArrayAccess offsetGet() Offset to retrieve | |
offsetSet ( mixed $offset, mixed $value ) : void | Implementation of ArrayAccess offsetSet() Offset to set | |
offsetUnset ( mixed $offset ) : void | Implementation of ArrayAccess offsetUnset() Offset to unset | |
size ( ) : integer | size of Tree Collection nodes |
Method | Description | |
---|---|---|
arrange ( ) : void | Arrange From Raw nodes to Menu Tree nodes | |
fullSort ( array $items = [] ) : array | sort all nodes | |
sort ( Xpressengine\Support\Tree\NodeInterface[] $items = [] ) : array | sort node tree |
public __construct ( Xpressengine\Support\Tree\NodeInterface[] $rawNodes = [] ) | ||
$rawNodes | Xpressengine\Support\Tree\NodeInterface[] | nodes |
public add ( Xpressengine\Support\Tree\NodeInterface $node ) | ||
$node | Xpressengine\Support\Tree\NodeInterface | nodes |
public getNodes ( ) : |
||
return | NodeInterface[] |
public getTreeNodes ( ) : |
||
return |
public jsonSerialize ( ) : mixed | ||
return | mixed | data which can be serialized by json_encode, which is a value of any type other than a resource. |
public static make ( Xpressengine\Support\Tree\NodeInterface[] $rawNodes = [] ) : static | ||
$rawNodes | Xpressengine\Support\Tree\NodeInterface[] | nodes |
return | static |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | array access offset |
return | boolean | true on success or false on failure. |
public offsetUnset ( mixed $offset ) : void | ||
$offset | mixed | array access offset |
return | void |
protected Collection,Illuminate\Support $rawNodes | ||
return |