Get a value
@param string $index id of the field
@return mixed
176897
protected function getValue($index)
    {
        if ($this->values[$index] === null) {
            return null;
        }
        return $this->values[$index]->value;
    }
1304453
public function getSearchIndex($index)
    {
        return isset($this->search[$index]) ? $this->search[$index] : null;
    }
83196
public function getParamClean($index){
        if(isset($this->params[$index])){
            return $this->params[$index];
        }else{
            return NULL;
        }
    }
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);
    }
64002
public function get(int $index): ?int {
        if (isset($this->array[$index])) {
            return $this->array[$index];
        }
        return null;
    }
1117440
public function getTokenAt($index) {
        // Get token from behind
        if ($index < 0) {
            $index = count($this->tokens) + $index;
        }

        return $this->tokens[$index];
    }
813667
public static function getValues($name, $index = 'code') {
		if($property_id = self::getId($name)) {
			$a = [];
			foreach(Lookup::find()
				->select(['position', 'name'])
				->where(['property_id' => $property_id])
				->orderBy($index)->all() as $item)
				$a[$item->$index] = $item->name;
			return $a;
		} else
			return null;
	}
63834
public function offsetGet($index)
    {
        return isset($this->rows[$index]) ? $this->rows[$index] : null;
    }
868996
public function get($index)
    {
        if (!is_int($index) || $index < 0) {
            throw new \InvalidArgumentException('ItemList::get() expects a positive integer argument.');
        }

        return isset($this->list[$index]) ? $this->list[$index] : null;
    }
481660
public function get(int $index)
    {
        $this->internalDataListUpdate();
        if (isset($this->internalDataListData[$index])) {
            return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, $index);
        }
        return null;
    }
1134056
public function get($index)
    {
        if (!isset($this->config[$index])) {
            return null;
        }

        return $this->config[$index];
    }
239897
public function get($index)
    {
        $result = \array_slice($this->nodes, $index, 1); // note: index can be negative
        if (\count($result) > 0) {
            return $result[0];
        }

        return null; // return null if no result for key
    }
434616
public function getParameter($index)
    {
        if (!$this->hasParameter($index)) {
            throw new \InvalidArgumentException(sprintf('Cannot retrieve parameter "%s"', $index));
        }

        return $this->parameters[$index];
    }
566493
public function val($index = 0) {

		if(false === ('-' . intval($index) == '-' . $index)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($index)), E_USER_ERROR);
		}

		$val = $this -> strip();

		if(true === isset($val[$index])) {
			return $val[$index];
		}

		return null;
	}
151617
public function get($index, $defaultValue = null)
    {
        $index = (string) $index;

        $items = $this->getItems();

        return isset($items[$index]) ? $items[$index] : $defaultValue;
    }
620469
public function getParameter($index)
    {
        if (!is_string($index) && !is_numeric($index)) {
            return null;
        }
        if (array_key_exists($index, $this->_parameterNameMap)) {
            $index = $this->_parameterNameMap[$index];
        }
        if (array_key_exists($index, $this->_parameters)) {
            return $this->_parameters[$index];
        }
        return null;
    }
11201
function offsetGet($index)
    {
        if (isset($this->{$index})) {
            return $this->{$index};
        } else {
            $records = $this->records();
            if ($index === "results") {
                return $records;
            }
            if ($record =& $records[$index]) {
                return $record;
            }
            foreach ((array)$records as $key => $record) {
                if ($record['id'] === $index) {
                    $record =& $records[$key];
                    return $record;
                }
            }
        }

        return null;
    }