TODO

@param bool $index
@return mixed
972059
public function error($index = false)
    {
        if (isset($this->upload['error'])) {
            if ($index === false) {
                    return $this->upload['error'];
            }
            return $this->upload['error'][$index];
        }
        return false;
    }
227825
public function getChildByIndex($index)
    {
        return isset($this->children[$index]) ? $this->children[$index] : null;
    }
479520
public function getArgument($index)
    {
        if (isset($this->arguments[$index])) {
            return $this->arguments[$index];
        }
        return false;
    }
1228100
public function offsetGet($index)
    {
        if (!array_key_exists($index, $this->data)) {
            throw InvalidArgumentException::format(
                    'Invalid array object index: expecting one of (%s), %s given',
                    Debug::formatValues(array_keys($this->data)), is_string($index) ? "'{$index}'" : $index
            );
        }

        return $this->data[$index];
    }
527248
public function hasIndex($index)
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }

        return \in_array($index, $this->_indices);
    }
1134056
public function get($index)
    {
        if (!isset($this->config[$index])) {
            return null;
        }

        return $this->config[$index];
    }
116248
public function get(?string $index = null, $xss_clean = false)
    {
        if ($index === null && \count($_GET) > 0) {
            $get = [];

            // Loop through the full $_GET array.
            foreach (array_keys($_GET) as $key) {
                $get[$key] = $this->fetchFromArray($_GET, $key, $xss_clean);
            }

            return $get;
        }

        return $this->fetchFromArray($_GET, $index, $xss_clean);
    }
470493
public function offsetGet($index) {
		if( $this->results === null ){
			$this->results = ($this->query)();
		}
		if( isset($this->results[$index]) ){
			return $this->results[$index];
		}
		return null;
	}
568838
public function getColumn($index)
    {
        if (is_string($index) and in_array($index, $this->childNodesEntities)) {
            if (false !== ($key = array_search($index, $this->childNodesEntities))) {
                if ($this->childNodes->offsetExists($key)) {
                    $index = $key;
                }
            }
        }

        return $this->childNodes->offsetGet($index);
    }
176897
protected function getValue($index)
    {
        if ($this->values[$index] === null) {
            return null;
        }
        return $this->values[$index]->value;
    }
241679
private function getByIndex($index)
    {
        if (!isset($this->headers[$index])) {
            return null;
        }
        if ($this->headerObjects[$index] === null) {
            $this->headerObjects[$index] = $this->headerFactory->newInstance(
                $this->headers[$index][0],
                $this->headers[$index][1]
            );
        }
        return $this->headerObjects[$index];
    }
779632
public function get($index)
    {
        if( $index >= count($this->generators) || $index < 0 )
            return null;
          
        return $this->generators[$index];
    }
284214
public function getNgRestRelationByIndex($index)
    {
        $relations = $this->generateNgRestRelations();

        return isset($relations[$index]) ? $relations[$index] : false;
    }
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;
    }
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;
		}
	}
985780
public function get($index)
    {
        $config = $this->config;
        foreach (explode('.', $index) as $value) {
            $config = $config[$value];
        }

        return $config;
    }
464530
protected function getMethodParam($index)
    {
        if (isset($this->methodParams[$index]) && ($value = intval($this->methodParams[$index])) > 0) {
            return $value;
        }

        return null;
    }