コード例 #1
0
ファイル: Mini.php プロジェクト: neetumorwani/blogging
 /**
  * {@inheritdoc}
  */
 public function query()
 {
     parent::query();
     // Don't query for the next page if we have a pager that has a limited
     // amount of pages.
     if ($this->getItemsPerPage() > 0 && (empty($this->options['total_pages']) || $this->getCurrentPage() < $this->options['total_pages'])) {
         // Increase the items in the query in order to be able to find out whether
         // there is another page.
         $limit = $this->view->query->getLimit();
         $limit += 1;
         $this->view->query->setLimit($limit);
     }
 }