src/DatabaseIterator.php
public function next()
	{
		// Set the default key as being the number of fetched object
		$this->key = $this->fetched;

		// Try to get an object
		$this->current = $this->fetchObject();

		// If an object has been found
		if ($this->current)
		{
			// Set the key as being the indexed column (if it exists)
			if (isset($this->current->{$this->column}))
			{
				$this->key = $this->current->{$this->column};
			}

			// Update the number of fetched object
			$this->fetched++;
		}
	}
public function next()
	{
		// Set the default key as being the number of fetched object
		$this->key = $this->fetched;

		// Try to get an object
		$this->current = $this->fetchObject();

		// If an object has been found
		if ($this->current)
		{
			// Set the key as being the indexed column (if it exists)
			if (isset($this->current->{$this->column}))
			{
				$this->key = $this->current->{$this->column};
			}

			// Update the number of fetched object
			$this->fetched++;
		}
	}
public function next ( ) { // Set the default key as being the number of fetched object $ this -> key = $ this -> fetched ; // Try to get an object $ this -> current = $ this -> fetchObject ( ) ; // If an object has been found if ( $ this -> current ) { // Set the key as being the indexed column (if it exists) if ( isset ( $ this -> current -> { $ this -> column } ) ) { $ this -> key = $ this -> current -> { $ this -> column } ; } // Update the number of fetched object $ this -> fetched ++ ; } }
Moves forward to the next result from the SQL query.

@return  void

@see     Iterator::next()
@since   1.0
Moves forward to the next result from the SQL query .