Beispiel #1
0
 /** @return DataGrid */
 protected function initPagination()
 {
     if ($this->itemCount === NULL) {
         $this->itemCount = max(0, (int) NCallback::invoke($this->itemCounter, $this->filters));
         $this->pageCount = (int) ceil($this->itemCount / $this->itemsPerPage);
         $this->page = Helpers::fixPage($this->page, $this->pageCount);
     }
     return $this;
 }