redirectIfUnlogged('/login'); $pageController = new Page(); $this->response = new \Views\Frontend(); $this->response->data = $pageController->getPageParams(); } public function getDashboardStat(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getStat($apiKey) : []; } public function getTopTen(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getTopTen($apiKey) : []; } public function getChart(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getChart($apiKey) : []; } }