Exemplo n.º 1
0
 /**
  * @param integer $currentPageNumber
  * @param integer $itemPerPage
  * @return Zend_paginator
  */
 private function __getFactoryPaginateTeacher($currentPageNumber, $itemPerPage)
 {
     $dbMapper = new Teacher_Model_TeacherMapper();
     return Application_Service_Paginator::factory($dbMapper, $currentPageNumber, $itemPerPage);
 }
Exemplo n.º 2
0
 /**
  * 
  * @param object $dbMapper
  * @param integer $currentPageNumber
  * @param integer $itemPerPage
  * @return Zend_Paginator
  */
 static function factory($dbMapper, $currentPageNumber, $itemPerPage)
 {
     $pagination = new Application_Service_Paginator($dbMapper);
     return $pagination->paginate($currentPageNumber, $itemPerPage);
 }
Exemplo n.º 3
0
 /**
  * 
  * @param integer $currentPageNumber
  * @param integer $itemPerPage
  * @return Zend_Paginator
  */
 private function __factoryPaginator($currentPageNumber, $itemPerPage)
 {
     $studentMapper = new Student_Model_StudentMapper();
     return Application_Service_Paginator::factory($studentMapper, $currentPageNumber, $itemPerPage);
 }