nextPage() публичный Метод

Switches to the next page.
public nextPage ( ) : integer | boolean
Результат integer | boolean the new page index, false if next page is not available.
Пример #1
0
 /**
  * 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
 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());
 }