set = new LiskDAOSet(); $this->object = $object->putInSet($this->set); } protected function didRewind() { $this->cursor = 0; } public function key() { return $this->current()->getID(); } protected function loadPage() { $this->set->clearSet(); $results = $this->object->loadAllWhere( 'id > %d ORDER BY id ASC LIMIT %d', $this->cursor, $this->getPageSize()); if ($results) { $this->cursor = last($results)->getID(); } return $results; } }