Property | Type | Description | |
---|---|---|---|
$children | Illuminate\Database\Eloquent\Collection | children collection of model | |
$parent | Xpressengine\Support\Tree\NodeInterface |
Method | Description | |
---|---|---|
addChild ( Xpressengine\Support\Tree\NodeInterface $node ) : void | Add child node | |
aggregator ( ) : |
Aggregator relationship | |
ancestors ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | Ancestors relationship | |
descendants ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | Descendants relationship | |
getAggregatorKeyName ( ) : string | Get the aggregator key name for model | |
getAggregatorModel ( ) : string | Get the aggregator model name for model | |
getAncestorName ( ) : string | Get the ancestor key name of pivot table | |
getBreadcrumbs ( ) : array | Get primary key array for breadcrumbs | |
getChildren ( ) : Illuminate\Database\Eloquent\Collection | Get a children collection of model | |
getClosureTable ( ) : string | Get the pivot table for model's hierarchy | |
getDepth ( ) : integer | Get the depth value of model | |
getDepthName ( ) : string | Get the depth key name of pivot table | |
getDescendantCount ( ) : integer | Returns a number of descendants | |
getDescendantName ( ) : string | Get the descendant key name of pivot table | |
getDescendantTree ( boolean $withSelf = false ) : |
Get a descendant tree collection of model | |
getNodeIdentifier ( ) : string | integer | Get the unique identifier for the node | |
getNodeIdentifierName ( ) : string | Get the unique identifier name for the node | |
getParent ( ) : |
Get a model's parent node | |
getParentIdName ( ) : string | Get the parent key name for model | |
getParentNodeIdentifier ( ) : string | integer | Get the parent identifier for the node | |
hasChild ( ) : boolean | Check having child and return the boolean result. | |
scopeProgenitors ( |
Scope for get node items of progenitor | |
scopeRoots ( |
Scope for get node items of root | |
setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void | Set child nodes | |
setParent ( Xpressengine\Support\Tree\NodeInterface $node ) : void | Set parent node |
Method | Description | |
---|---|---|
children ( ) : Illuminate\Database\Eloquent\Collection | Returns children collection |
public aggregator ( ) : |
||
return |
public ancestors ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |
protected children ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public descendants ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |
abstract public getAggregatorKeyName ( ) : string | ||
return | string |
abstract public getAggregatorModel ( ) : string | ||
return | string |
abstract public getAncestorName ( ) : string | ||
return | string |
public getBreadcrumbs ( ) : array | ||
return | array |
public getChildren ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
abstract public getClosureTable ( ) : string | ||
return | string |
abstract public getDepthName ( ) : string | ||
return | string |
public getDescendantCount ( ) : integer | ||
return | integer |
abstract public getDescendantName ( ) : string | ||
return | string |
public getDescendantTree ( boolean $withSelf = false ) : |
||
$withSelf | boolean | flag for descendant tree with self |
return |
public getNodeIdentifier ( ) : string | integer | ||
return | string | integer |
public getNodeIdentifierName ( ) : string | ||
return | string |
public getParent ( ) : |
||
return |
abstract public getParentIdName ( ) : string | ||
return | string |
public getParentNodeIdentifier ( ) : string | integer | ||
return | string | integer |
public scopeProgenitors ( |
||
$query | query builder | |
$aggregator | category instance | |
return |
public scopeRoots ( |
||
$query | query builder | |
return |
public setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void | ||
$children | Xpressengine\Support\Tree\NodeInterface[] | children node interfaces |
return | void |
protected Collection,Illuminate\Database\Eloquent $children | ||
return | Illuminate\Database\Eloquent\Collection |