예제 #1
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;
 }
예제 #2
0
 private function setParams()
 {
     $this->limit = $this->conf->getViewLimit();
     $this->countPage = $this->getSitesNumber();
 }
예제 #3
0
파일: System.php 프로젝트: ignaszak/cms
 /**
  *
  * @return integer
  */
 public function getViewLimit() : int
 {
     return $this->conf->getViewLimit();
 }