/* (non-PHPdoc)
@see ArrayAccess::offsetGet()
179621
public function offsetGet($key) {
		$hashCode = HashUtils::hashCode($key);
		if (isset($this->values[$hashCode])) {
			return $this->values[$hashCode];
		}
		return null;
	}
817457
public function offsetGet($offset)
    {
        $res = null;
        if(is_array($this->obj)){
            $res = &$this->obj[$offset];
        }elseif(self::hasProperty($this->obj, $offset)){
            $res = &$this->obj->{$offset};
        }elseif(method_exists($this->obj, 'get')){
            $res = $this->obj->get($offset);
        }elseif(method_exists($this->obj, $method = 'get'.ucfirst($offset))){
            $res = $this->obj->{$method}();
        }else{
            throw new \InvalidArgumentException("offsetGet($offset) failed");
        }
        if(is_array($res) || is_object($res)){
            return new self($res);
        }
        return $res;
    }
1114305
public function offsetGet($offset)
	{
		list($index_name, $key) = $this->normalizeAccessKey($offset);

		return $this->get($key, null, $index_name);
	}
268120
public function offsetGet($offset)
    {
        // Get name of the method, the class should have. Like "getText"
        $method = Text::camelCase("get $offset");

        // If it exists, call it and return its return value
        if (method_exists($this, $method)) {
            return $this->{$method}();
        }

        // If not return the data from the array after checking it is set
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }
1238931
public function offsetGet($offset)
    {
        if (isset($this->values[$offset])) {
            return $this->values[$offset];
        }

        $keys = explode($this->keySeparator, $offset);

        $value = $this->values;

        foreach ($keys as $key) {
            $value = &$value[$key];

            if ($value === null) {
                break;
            }
        }

        return $value;
    }
589094
public function offsetGet($offset)
    {
        if ($offset instanceof UniqueId) {
            $offset = $offset->id();
        }

        return $this->elements->offsetGet($offset);
    }
627790
public function offsetGet($offset)
    {
        if (!array_key_exists($offset, $this->_data)) {
            return false;
        }
        return $this->_data[$offset];
    }
1279261
public function offsetGet( $offset ) {
		return isset( $this->config[ $offset ] ) ? $this->config[ $offset ] : null;
	}
364493
public function offsetGet($offset)
    {
        if (array_key_exists($offset, $this->properties)) {
            return $this->properties[$offset];
        } else {
            return $this->properties;
        }
    }
735500
public function offsetGet($key)
    {
        $key = strtr(strtolower($key), '_', '-');

        $result = null;
        if (isset($this->_data[$key])) {
            $result = $this->_data[$key];
        }

        return $result;
    }
1298186
public function offsetGet($offset) {
		if ($offset instanceOf Argument) {
			$offset = $offset->key;
		}

		if (isset($this->_parsed[$offset])) {
			return $this->_parsed[$offset];
		}
	}
239486
public function offsetGet($offset)
    {
        $method = sprintf('get%s', Thigh::studly($offset));
        $called = sprintf('widget.%s.%s', Thigh::snake(get_class($this)), $offset);

        if (!method_exists($this, $method)) {
            throw new \RuntimeException("$called is not defined!");
        }

        $params = $this->thigh->getParameters();
        $ttl = -1;
        if (isset($params['cache']) && false !== filter_var($params['cache'], FILTER_VALIDATE_INT)) {
            $ttl = intval($params['cache']);
            unset($params['cache']);
        }

        $parameters = array();
        if (!empty($params)) {
            $function = new \ReflectionMethod ($this, $method);
            foreach ($function->getParameters() as $parameter) {
                $name = $parameter->getName();
                if (array_key_exists($name, $params)) {
                    $parameters [] = $params[$name];
                    $called .= ".{$params[$name]}";
                } elseif (!is_null($this->thigh->getContainer()) && $this->thigh->getContainer()->has($name)) {
                    $parameters [] = $this->thigh->getContainer()->get($name);
                } elseif ($parameter->isDefaultValueAvailable()) {
                    $parameters [] = $parameter->getDefaultValue();
                } else {
                    throw new \InvalidArgumentException (sprintf('%s* parameter %s not found!', $called, $name));
                }
            }
        }

        if (isset($this->results[$called])) {
            return $this->results[$called];
        }

        if ($ttl >= 0 && !is_null($this->thigh->getCache())) {
            $result = $this->thigh->getCache()->get($called);
            if (false !== $result) {
                $result = json_decode($result, true);
                return $this->results[$called] = $result['items'];
            } else {
                $this->results[$called] = isset($function) ? $function->invokeArgs($this, $parameters) : $this->$method();
                $result = array(
                    'params' => $parameters,
                    'created_at' => date("Y-m-d H:i:s"),
                    'items' => $this->results[$called]
                );
                $this->thigh->getCache()->set($called, json_encode($result), $ttl);
                return $this->results[$called];
            }
        }
        
        return $this->results[$called] = isset($function) ? $function->invokeArgs($this, $parameters) : $this->$method();
    }
501055
public function offsetGet($offset)
    {
        if (isset($this->rows[ $offset ])) {
            return $this->rows[ $offset ];
        }

        return false;
    }
95712
public function offsetGet($offset)
    {
        return array_key_exists($offset, $this->attributes) ? $this->attributes[$offset] : null;
    }
552430
public function offsetGet($offset = null)
    {
        return isset($this->properties[$offset]) ? $this->properties[$offset] : null;
    }
733476
public function offsetGet($offset) {
		$this->getElements();
        return isset($this->elements[$this->getPosition($offset)]) ? $this->elements[$this->getPosition($offset)] : null;
    }
58536
public function offsetGet($offset)
    {
        $index = $this->getKeyIndex($offset);

        if ($index >= 0) {
            return $this->values[$index];
        }

        return null;
    }