| @@ 135-144 (lines=10) @@ | ||
| 132 | return $this->getAncestors($id); |
|
| 133 | } |
|
| 134 | ||
| 135 | public function getParentTreeAndSelfById($id) |
|
| 136 | { |
|
| 137 | $self = $this->getInfoById($id); |
|
| 138 | if ($self) { |
|
| 139 | $parent = $this->getParentTree($self->id); |
|
| 140 | $parent->push($self); |
|
| 141 | return $parent; |
|
| 142 | } |
|
| 143 | return false; |
|
| 144 | } |
|
| 145 | ||
| 146 | public function getParentTreeAndSelfByName($name) |
|
| 147 | { |
|
| @@ 146-155 (lines=10) @@ | ||
| 143 | return false; |
|
| 144 | } |
|
| 145 | ||
| 146 | public function getParentTreeAndSelfByName($name) |
|
| 147 | { |
|
| 148 | $self = $this->getInfoByName($name); |
|
| 149 | if ($self) { |
|
| 150 | $parent = $this->getParentTree($self->id); |
|
| 151 | $parent->push($self); |
|
| 152 | return $parent; |
|
| 153 | } |
|
| 154 | return false; |
|
| 155 | } |
|
| 156 | ||
| 157 | public function saveMenu(Request $request) |
|
| 158 | { |
|