Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private function setParams()
 {
     $this->limit = $this->conf->getViewLimit();
     $this->countPage = $this->getSitesNumber();
 }
Ejemplo n.º 3
0
 /**
  *
  * @return integer
  */
 public function getViewLimit() : int
 {
     return $this->conf->getViewLimit();
 }