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