public function next() { if ($this->_current = $this->_next()) { $this->_iterator++; return $this->_current; } $this->_close(); $this->_resource = null; }