Method |
Description |
|
duplicatesExistForColumn ( string $column ) : boolean |
Checks if duplicate values for the column specified exist. Takes
the Nested Set scope columns into account (if appropiate). |
|
groupRootsByScope ( mixed $roots ) : array |
Given a list of root nodes, it returns an array in which the keys are the
array of the actual scope column values and the values are the root nodes
inside that scope themselves. |
|
isEachRootValid ( mixed $roots ) : boolean |
Check that each root node in the list supplied satisfies that its bounds
values (lft, rgt indexes) are less than the next. |
|
keyForScope ( Baum\Node $node ) : string |
Builds a single string for the given scope columns values. Useful for
making array keys for grouping. |
|
validateBounds ( ) : boolean |
Validates bounds of the nested tree structure. It will perform checks on
the lft, rgt and parent_id columns. Mainly that they're not null,
rights greater than lefts, and that they're within the bounds of the parent. |
|
validateDuplicates ( ) : boolean |
Checks that there are no duplicates for the lft and rgt columns. |
|
validateRoots ( ) : boolean |
For each root of the whole nested set tree structure, checks that their
lft and rgt bounds are properly set. |
|
validateRootsByScope ( mixed $roots ) : boolean |
Check that each root node in the list supplied satisfies that its bounds
values (lft, rgt indexes) are less than the next *within each scope*. |
|