public function seek($index)
	{
		$this->rewind();

		while ($this->_pos < $index && $this->valid())
		{
			$this->next();
		}

		if (!$this->valid())
		{
			throw new \OutOfBoundsException(\Lang::txt('Invalid seek position'));
		}
	}
public function seek($index)
	{
		$this->rewind();

		while ($this->_pos < $index && $this->valid())
		{
			$this->next();
		}

		if (!$this->valid())
		{
			throw new \OutOfBoundsException(\Lang::txt('Invalid seek position'));
		}
	}
public function seek ( $ index ) { $ this -> rewind ( ) ; while ( $ this -> _pos < $ index && $ this -> valid ( ) ) { $ this -> next ( ) ; } if ( ! $ this -> valid ( ) ) { throw new \ OutOfBoundsException ( \ Lang :: txt ( 'Invalid seek position' ) ) ; } }
Seek to an absolute position

@param   integer               $index
@throws  OutOfBoundsException  When the seek position is invalid
@return  void
Seek to an absolute position