SwatDB/SwatDBRecordsetWrapper.php
public function offsetGet($offset)
    {
        if (!isset($this[$offset])) {
            throw new OutOfBoundsException(
                sprintf('Index %s is out of bounds.', $offset)
            );
        }

        if ($this->index_field === null) {
            return $this->objects[$offset];
        }

        return $this->objects_by_index[$offset];
    }
public function offsetGet($offset)
    {
        if (!isset($this[$offset])) {
            throw new OutOfBoundsException(
                sprintf('Index %s is out of bounds.', $offset)
            );
        }

        if ($this->index_field === null) {
            return $this->objects[$offset];
        }

        return $this->objects_by_index[$offset];
    }
public function offsetGet ( $ offset ) { if ( ! isset ( $ this [ $ offset ] ) ) { throw new OutOfBoundsException ( sprintf ( 'Index %s is out of bounds.' , $ offset ) ) ; } if ( $ this -> index_field === null ) { return $ this -> objects [ $ offset ] ; } return $ this -> objects_by_index [ $ offset ] ; }
Gets a record in this recordset by an offset value

@param mixed $offset the offset for which to get the record. If this
recordset has a defined index field, the offset is
an index value. Otherwise, the offset is an
ordinal value.

@return SwatDBDataObject the record at the specified offset.

@throws OutOfBoundsException if no record exists at the specified offset
in this recordset.
Gets a record in this recordset by an offset value