Example #1
0
 /**
  * Return current page
  *
  * @return int
  */
 public function getCurrentPage()
 {
     if (is_object($this->_collection)) {
         return $this->_collection->getCurPage();
     }
     return (int) $this->getRequest()->getParam($this->getPageVarName(), 1);
 }
Example #2
0
 public function testGetCurPage()
 {
     $this->_model->setCurPage(10);
     $this->assertEquals(1, $this->_model->getCurPage());
 }