public function configureThemePath() { if ($this->http->isAdmin()) { $this->themeFolder = "view/admin"; $this->themePath = __VIEWDIR__ . "/admin"; } else { $themeName = $this->conf->getTheme(); $this->themeFolder = "view/public/{$themeName}"; $this->themePath = __VIEWDIR__ . "/public/{$themeName}"; } }
/** * Creates query to paginate rows */ private function paginateQuery() { $limit = $this->conf->getViewLimit(); $page = $this->http->router->get('page', 1); $offset = $limit * ($page - 1); $query = $this->query->getQuery()->setFirstResult($offset)->setMaxResults($limit)->getResult(); $this->entityArray = $query; }
public function getAdminAdress() { return $this->conf->getBaseUrl() . '/' . ADMIN_URL; }
private function setParams() { $this->limit = $this->conf->getViewLimit(); $this->countPage = $this->getSitesNumber(); }
/** * * @return integer */ public function getViewLimit() : int { return $this->conf->getViewLimit(); }