Example #1
0
 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}";
     }
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 public function getAdminAdress()
 {
     return $this->conf->getBaseUrl() . '/' . ADMIN_URL;
 }
Example #4
0
 private function setParams()
 {
     $this->limit = $this->conf->getViewLimit();
     $this->countPage = $this->getSitesNumber();
 }
Example #5
0
 /**
  *
  * @return integer
  */
 public function getViewLimit() : int
 {
     return $this->conf->getViewLimit();
 }