redirectIfUnlogged(); $pageController = new Page(); $this->response = new \Views\Frontend(); $this->response->data = $pageController->getPageParams(); } // TODO: daterange ~= event_logbook.started? public function getList(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getList($apiKey) : []; } public function getLogbookDetails(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getLogbookDetails($apiKey) : []; } }