public function setCurrentPageIndex($value) { if ($this->gotoPage($value = TPropertyValue::ensureInteger($value)) === false) { throw new TInvalidDataValueException('pagedlist_currentpageindex_invalid'); } }