1 | <?php |
||
10 | trait NestedModelTrait |
||
11 | { |
||
12 | use NodeTrait; |
||
13 | |||
14 | /** |
||
15 | * Build the collection representing the tree with possibly many root nodes |
||
16 | * |
||
17 | * @param Collection|null $nodes |
||
18 | * @return Collection |
||
19 | */ |
||
20 | public static function loadTree(Collection $nodes = null) |
||
30 | |||
31 | /* |
||
32 | |-------------------------------------------------------------------------- |
||
33 | | Kalnoy/NestedSet |
||
34 | |-------------------------------------------------------------------------- |
||
35 | | |
||
36 | | Overwrite the default tree columns here to fit with backpack reorder |
||
37 | */ |
||
38 | |||
39 | public function getLftName() |
||
43 | |||
44 | public function getRgtName() |
||
48 | |||
49 | public function getParentIdName() |
||
53 | } |