Exemple #1
0
 /**
  * @return array
  */
 private function getList()
 {
     $return = array();
     $total = 0;
     $pages = 0;
     try {
         $this->paginate();
         if (null !== $this->list) {
             $return = $this->list->toArray();
             $total = $this->list->getNbResults();
             $pages = $this->list->getLastPage();
         }
     } catch (\Exception $e) {
         Logger::getInstance(get_class($this))->errorLog($e->getMessage());
     }
     return array($return, $total, $pages);
 }
Exemple #2
0
 public function getLastPage(PropelModelPager $pager)
 {
     return $pager->getLastPage();
 }