public function getTemplateParameters() { $count = UsersDataService::countActiveUsersWithHighscore($this->_websoccer, $this->_db); $eps = $this->_websoccer->getConfig("entries_per_page"); $paginator = new Paginator($count, $eps, $this->_websoccer); if ($count > 0) { $users = UsersDataService::getActiveUsersWithHighscore($this->_websoccer, $this->_db, $paginator->getFirstIndex(), $eps); } else { $users = array(); } return array("users" => $users, "paginator" => $paginator); }