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

Changes to a page with the specified page index.
public gotoPage ( $pageIndex ) : integer | boolean
Результат integer | boolean the new page index, false if page index is out of range.
Пример #1
0
 public function testIsLastPage()
 {
     $list = new TPagedList(array(1, 2, 3));
     $list->PageSize = 1;
     $list->gotoPage(0);
     self::assertEquals(false, $list->IsLastPage);
     $list->gotoPage(2);
     self::assertEquals(true, $list->IsLastPage);
 }