Returns a parameter from the query string. Allows an array to traverse a tree of key names.

@param string|array $name
@param mixed $default
@return mixed
320876
public function getParam($name, $default = null)
    {
        if (is_array($name)) {
            return TreeTools::getByPath($this->components[self::QUERY], $name, $default);
        }
        if (isset($this->components[self::QUERY][$name])) {
            return $this->components[self::QUERY][$name];
        }

        return $default;
    }
714867
public static function getString($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToString($_GET[$name]);
        return $default;
    }
466373
public function getValues(string $name, array $default = []): array
    {
        $key = strtolower($name);
        if (!array_key_exists($key, $this->headers)) {
            return $default;
        }

        return $this->headers[$key]->getValuesAsArray();
    }
317273
public function get($name, $default = null)
    {
        return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
    }
150245
public static function get($name = null, $default = false)
	{
		if(isset(self::$modifys[$name]))
		{
			return self::$modifys[$name];
		}
		else if(array_key_exists($name,self::$modifys))
		{
			return $default;
		}
		else
		{
			self::init();
			self::save();
			if(null === $name)
			{
				return $_SESSION;
			}
			$names = parseCfgName($name);
			$var = $_SESSION;
			foreach($names as $name)
			{
				if('@' === $name)
				{
					$name = self::$prefix;
				}
				if('' !== $name)
				{
					$var = $var[$name];
				}
			}
			return isset($var) ? $var : $default;
		}
	}
354900
public function param($name, $default = null)
    {
        return isset($this->parameters[$name]) ? $this->parameters[$name] : $default;
    }
906134
public function get($name, $default = null)
    {
        $result = $default;
        if($this->offsetExists($name)) {
            $result = $this->offsetGet($name);
        }

        return $result;
    }
479482
public function get ($name, $default = null)
		{
			foreach ($this->_data as $d)
			{
				if ($d->name === $name)
					return $d->value;
			}

			return $default;
		}
358156
public function get($name, $default = null)
    {
        return isset($this->filters[$name]) ? $this->filters[$name] : $default;
    }
17140
public function getQueryParam($name, $default = null)
    {
        if (isset($this->queryParams[$name])) {
            return $this->queryParams[$name];
        }

        return $default;
    }
1179916
public function get(string $name, $default = null)
    {
        return ($this->exists($name)) ? $this->map[$name] : $default;
    }
485651
public function input($name=null, $default=null)
    {
        if (!$name) {
            return $this->getRequestParams();
        } else {
            $method = $name2 = null;
            $name = str_replace('.', ':', $name);
            if (($pos = strpos($name, ':')) !== false) {
                $names = explode(':', $name);
                $method = strtoupper(trim($names[0]));
                if (in_array($method, ['GET', 'POST', 'OPTION', 'DELETE', 'PUT'])) {
                    $name = trim($names[1]);
                    if (isset($names[2])) {
                        $name2 = trim($names[2]);
                    }
                } else {
                    $method = null;
                    $name = trim($names[0]);
                    $name2 = trim($names[1]);
                }
            } elseif (strtoupper($name) == 'GET' || strtoupper($name) == 'POST') {
                $method = strtoupper($name);
                $name = null;
            }
            
            if ($name === '*') {
                $name = null;
            }
            
            switch ($method) {
                case 'GET':
                    if ($name2) {
                        return isset($this->getQueryParam()[$name][$name2]) ? $this->getQueryParam()[$name][$name2] : $default;
                    } else {
                        return $name ? $this->getQueryParam($name, $default) : $this->getQueryParams();
                    }
                    break;
                case 'POST':
                    if ($name2) {
                        return isset($this->getPostParams()[$name][$name2]) ? $this->getPostParams()[$name][$name2] : $default;
                    } else {
                        return $name ? (isset($this->getPostParams()[$name]) ? $this->getPostParams()[$name] : $default) : $this->getPostParams();
                    }
                    break;
                default:
                    if ($name2) {
                        return isset($this->getRequestParams()[$name][$name2]) ? $this->getRequestParams()[$name][$name2] : $default;
                    } else {
                        return $name ? (isset($this->getRequestParams()[$name]) ? $this->getRequestParams()[$name] : $default) : $this->getRequestParams();
                    }
                    break;
            }
        }
    }
803077
public function get(string $name, $default = null)
    {
        return isset($this->options[$name]) ? $this->options[$name] : $default;
    }
1097285
public function find($name, $default = null)
    {
        return ($options = $this->fetchAll()->lists('value', 'key')) && $options->has($name)
            ? $options->get($name)
            : $default;
    }
937646
public function getQuery($name, $default = null)
    {
        return isset($this->gets[$name]) ? $this->gets[$name] : $default;
    }
139733
public function get($name, $default = null)
    {
        $result = $default;
        if (array_key_exists($name, $this->_data)) {
            $result = $this->_data[$name];
        }
        return $result;
    }
219009
protected function getOption($name, $default = null)
    {
        $matchedOption = null;
        foreach ($this->actions[$this->actionName]->getOptions() as $option) {
            if ($option->matchParam($name)) {
                $matchedOption = $option;
            }
        }
        $value = $matchedOption->getValue($this->args, $default);

        return $value;
    }