Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 public function testToArray()
 {
     $list = new TPagedList(array(1, 2, 3));
     $list->CustomPaging = true;
     self::assertEquals(array(1, 2, 3), $list->toArray());
 }