Свойство | Type | Description | |
---|---|---|---|
$bounds | array | Array which will hold temporary lft, rgt index values for each scope. | |
$node | Node instance for reference. |
Méthode | Description | |
---|---|---|
__construct ( |
Create a new \Baum\SetBuilder class instance. | |
children ( Baum\Node $node ) : Illuminate\Database\Eloquent\Collection | Return all children for the specified node. | |
rebuild ( ) : void | Perform the re-calculation of the left and right indexes of the whole nested set tree structure. | |
rebuildBounds ( $node, $depth ) | Recompute left and right index bounds for the specified node and its children (recursive call). Fill the depth column too. | |
roots ( ) : Illuminate\Database\Eloquent\Collection | Return all root nodes for the current database table appropiately sorted. |
Méthode | Description | |
---|---|---|
getNextBound ( string $key ) : integer | Return next index bound value for the given key (current scope identifier). | |
qualify ( $column ) : string | Get the fully qualified value for the specified column. | |
scopedAttributes ( Baum\Node $node ) : array | Return an array of the scoped attributes of the supplied node. | |
scopedKey ( Baum\Node $node ) : string | Return a string-key for the current scoped attributes. Used for index computing when a scope is defined (acsts as an scope identifier). |
public __construct ( |
||
$node | ||
Résultat | void |
public children ( Baum\Node $node ) : Illuminate\Database\Eloquent\Collection | ||
$node | Baum\Node | |
Résultat | Illuminate\Database\Eloquent\Collection |
protected getNextBound ( string $key ) : integer | ||
$key | string | |
Résultat | integer |
public rebuildBounds ( $node, $depth ) |
public roots ( ) : Illuminate\Database\Eloquent\Collection | ||
Résultat | Illuminate\Database\Eloquent\Collection |
protected scopedAttributes ( Baum\Node $node ) : array | ||
$node | Baum\Node | |
Résultat | array |
protected array $bounds | ||
Résultat | array |