Returns the item at the specified offset.
This method is exactly the same as {@link offsetGet}.
@param integer $index the index of the item
@return mixed the item at the index
@throws \yii\baseException if the index is out of the range
511667
public function itemAt ($index) {
        if (isset($this->_d[$index]))
            return $this->_d[$index];
        elseif ($index >= 0 && $index < $this->_c) // in case the value is null
            return $this->_d[$index];
        else
            throw new Exception(Yii::t ('yii' , 'List index "{index}" is out of bound.' ,
                array('{index}' => $index)));
    }
1308075
public function at( $index ) {
			if ( is_int( $index ) ) {
				if ( $index >= 0 && $index < $this->len ) {
					return $this->items[ $index ];
				} else {
					throw new \browserfs\Exception('Index out of bounds!');
				}
			} else {
				throw new \browserfs\Exception('Invalid argument $index: Expected int');
			}
		}
338564
final public function offsetGet($offset)
    {
        if (!isset($this->props['items'][$offset])) {
            throw new OutOfRangeException('Trace['.$offset.'] is not found');
        }
        return $this->props['items'][$offset];
    }
402041
public function offsetGet($offset)
    {
        if (is_int($offset)) {
            $offset  = $this->resolveOffset($offset);
            $objects = array_values($this->objects);
            if (isset($objects[$offset])) {
                return $objects[$offset];
            }
        }

        return $this->get($offset);
    }
1352458
public function get($index){
		if(isset($this->map[ $index ])){
			return $this->map[ $index ];
		}
		return null;
	}
1221493
public function getItem($index) {
		if (is_int($index)&& isset($this->content[$index]))
			return $this->content[$index];
		else {
			$elm=$this->getElementById($index, $this->content);
			return $elm;
		}
	}
909016
public function offsetGet($offset)
    {
        if ($offset == $this->querySeparator) {
            return $this->root();
        }

        if (isset($this->array[$offset])) {
            return $this->array[$offset];
        }

        if (static::endsWith($offset, $this->querySeparator)) {
            $cleaned = static::removeTrailing($offset);

            return $this->sub($cleaned)->root();
        }

        return $this->group($offset);
    }
141856
public function get($index, $default = null)
    {
        $indexes = explode('.', trim($index, '.'));
        $payload = $this->raw;
        $value = $default;

        foreach ($indexes as $indexValue) {
            if (!isset($payload[$indexValue])) {
                return $default;
            }
            $value = $payload = $payload[$indexValue];
        }

        return $value;
    }
547620
public function at($index){
        $return = NULL;
        $index = intval($index);
        $data = $this->asArray();
        reset($data);
        if ($index < 0){
            $index += $this->length();
        }
        $c = 1;
        while ($c <= $index){
            next($data);
            $c++;
        }
        $return = current($data);
        $Model = $this->buildModel($return);
        if ($Model !== NULL){
            $return = $Model;
        }
        return $return;
    }
1372814
public function get($index = 0)
    {

        if (is_int($index)) {
            if ($index + 1 > $this->count()) {
                return null;
            } else {
                return current(array_slice($this->_items, $index, 1));
            }
        } else {

            if ($index instanceof \MongoId) {
                $index = (string) $index;
            }

            if ($this->has($index)) {
                return $this->_items[$index];
            }
        }

        return null;
    }
726929
public function &getItem($offset)
    {
        $item = parent::offsetGet($offset);

        if (is_array($item)) {
            if (is_string(key($item))) {
                $item = new SplArrayObject($item);
            }
        }

        return $item;
    }
903830
public function get($index, $default = null)
	{
		if ($this->hasByIndex($index))
		{
			return $this->store[$index];
		}

		if ($default instanceof \Closure)
		{
			return $default($this);
		}

		return $default;
	}
63834
public function offsetGet($index)
    {
        return isset($this->rows[$index]) ? $this->rows[$index] : null;
    }
810250
public function getValue($index = 0)
    {
        if ($index === 0 && $this->value === null) {
            return $this->defaultValue;
        }

        return (is_array($this->value) && array_key_exists($index, $this->value))
            ? $this->value[$index]
            : null;
    }
374325
public function offsetGet( $offset )
	{
		if ( is_int( $offset ) ) {
			return $this->item( $offset );
		}
		else {
			return $this->contains( $offset );
		}
	}
549396
public function offsetGet( $index )
    {
        return call_user_func(
            $this->fetchCallback,
            pg_fetch_array( $this->resource, $index, $this->fetchType )
        );
    }
157515
public function offsetGet($offset)
    {
        $offset = (int) $offset;
        if ($offset < 0 || $offset >= $this->_count) {
            throw new Kwf_Exception("Illegal index $offset");
        }
        $this->_pointer = $offset;

        return $this->current();
    }