| @@ 54-66 (lines=13) @@ | ||
| 51 | * |
|
| 52 | * @return TemplateResponse |
|
| 53 | */ |
|
| 54 | public function adminIndex() { |
|
| 55 | // Private API call |
|
| 56 | $navigation = $this->navigationManager->getAll(); |
|
| 57 | $order = json_decode($this->appConfig->getAppValue('order')); |
|
| 58 | $nav = $this->util->matchOrder($navigation, $order); |
|
| 59 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
|
| 60 | return new TemplateResponse( |
|
| 61 | $this->appName, |
|
| 62 | 'admin', |
|
| 63 | ["nav" => $nav, 'type' => 'admin', 'hidden' => $hidden], |
|
| 64 | 'blank' |
|
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | public function personalIndex() { |
|
| 69 | // Private API call |
|
| @@ 68-80 (lines=13) @@ | ||
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | public function personalIndex() { |
|
| 69 | // Private API call |
|
| 70 | $navigation = $this->navigationManager->getAll(); |
|
| 71 | $order = json_decode($this->appConfig->getUserValue('order', $this->userId)); |
|
| 72 | $nav = $this->util->matchOrder($navigation, $order); |
|
| 73 | $hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId)); |
|
| 74 | return new TemplateResponse( |
|
| 75 | $this->appName, |
|
| 76 | 'admin', |
|
| 77 | ["nav" => $nav, 'type' => 'personal', 'hidden' => $hidden], |
|
| 78 | 'blank' |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Admin: save default order |
|