function next() { if($this->is_cached_rs) return $this->cached_rs->next(); else return parent :: next(); }