/** * Returns pager collection fo databacken for this list context * * @return Tx_PtExtlist_Domain_Model_Pager_PagerCollection */ public function getPagerCollection() { if ($this->pagerCollection === null) { $this->pagerCollection = $this->dataBackend->getPagerCollection(); $this->pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount()); } return $this->pagerCollection; }
/** * Init the pager */ protected function initPager() { $this->pagerCollection = $this->dataBackend->getPagerCollection(); $this->pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount()); }