previousPage() public method

Switches to the previous page.
public previousPage ( ) : integer | boolean
return integer | boolean the new page index, false if previous page is not available.
コード例 #1
0
ファイル: TSqlMapPagedList.php プロジェクト: pradosoft/prado
 /**
  * Switches to the previous page.
  * @return integer|boolean the new page index, false if previous page is not availabe.
  */
 public function previousPage()
 {
     return $this->getIsPreviousPageAvailable() ? parent::previousPage() : false;
 }
コード例 #2
0
ファイル: TPagedListTest.php プロジェクト: pradosoft/prado
 public function testPreviousPage()
 {
     $list = new TPagedList(array(1, 2));
     $list->PageSize = 1;
     $list->gotoPage(1);
     self::assertEquals(0, $list->previousPage());
     self::assertEquals(false, $list->previousPage());
 }