function Next()
    {
    	if ($this->UnableToCache)
    	{
    		require_once("verysimple/Util/ExceptionFormatter.php");
    		$info = ExceptionFormatter::FormatTrace(debug_backtrace());
    		$this->_phreezer->Observe("(DataSet.Next: unable to cache query with cursor) " . $info . "  " . $this->_sql,OBSERVE_DEBUG);

    		// use this line to discover where an uncachable query is coming from
    		// throw new Exception("WTF");

    		// stop this warning from repeating on every next call for this dataset
    	    $this->UnableToCache = false;
    	}

        $this->_verifyRs();

		$this->_current = null;
		$this->_counter++;

        if ($this->_eof)
        {
			if (!$this->_no_exception)
				throw new Exception("EOF: This is a forward-only dataset.");
        }

        if ($row = $this->_phreezer->DataAdapter->Fetch($this->_rs))
        {
            $this->_current = $this->_getObject($row);
			$this->_last = $this->_current;
		}
        else
        {
            $this->_eof = true;
        }

		return $this->_current;
    }
function Next()
    {
    	if ($this->UnableToCache)
    	{
    		require_once("verysimple/Util/ExceptionFormatter.php");
    		$info = ExceptionFormatter::FormatTrace(debug_backtrace());
    		$this->_phreezer->Observe("(DataSet.Next: unable to cache query with cursor) " . $info . "  " . $this->_sql,OBSERVE_DEBUG);

    		// use this line to discover where an uncachable query is coming from
    		// throw new Exception("WTF");

    		// stop this warning from repeating on every next call for this dataset
    	    $this->UnableToCache = false;
    	}

        $this->_verifyRs();

		$this->_current = null;
		$this->_counter++;

        if ($this->_eof)
        {
			if (!$this->_no_exception)
				throw new Exception("EOF: This is a forward-only dataset.");
        }

        if ($row = $this->_phreezer->DataAdapter->Fetch($this->_rs))
        {
            $this->_current = $this->_getObject($row);
			$this->_last = $this->_current;
		}
        else
        {
            $this->_eof = true;
        }

		return $this->_current;
    }
function Next ( ) { if ( $ this -> UnableToCache ) { require_once ( "verysimple/Util/ExceptionFormatter.php" ) ; $ info = ExceptionFormatter :: FormatTrace ( debug_backtrace ( ) ) ; $ this -> _phreezer -> Observe ( "(DataSet.Next: unable to cache query with cursor) " . $ info . "  " . $ this -> _sql , OBSERVE_DEBUG ) ; // use this line to discover where an uncachable query is coming from
 // throw new Exception("WTF");
 // stop this warning from repeating on every next call for this dataset
 $ this -> UnableToCache = false ; } $ this -> _verifyRs ( ) ; $ this -> _current = null ; $ this -> _counter ++ ; if ( $ this -> _eof ) { if ( ! $ this -> _no_exception ) throw new Exception ( "EOF: This is a forward-only dataset." ) ; } if ( $ row = $ this -> _phreezer -> DataAdapter -> Fetch ( $ this -> _rs ) ) { $ this -> _current = $ this -> _getObject ( $ row ) ; $ this -> _last = $ this -> _current ; } else { $ this -> _eof = true ; } return $ this -> _current ; }
Next returns the next object in the collection.

@access     public
@return     Preezable
Next returns the next object in the collection .