nextPage() public method

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