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