获取GET数据

@param string $param
@param mixed|null $defaultValue

@return mixed
350269
protected function getQuery($param = null, $defaultValue = null)
    {
        if ($param === null) {
            return $this->getRequest()->getQuery();
        }

        return $this->getRequest()->getQuery($param, $defaultValue);
    }
791539
public function getAttribute($key, $defaultValue = null)
    {
        if ($this->hasAttribute($key)) {
            return $this->attributes[$key];
        }

        return $defaultValue;
    }
1215954
public function getOption($option, $defaultValue)
	{
		if (!isset($this->_options[$option]))
		{
			$this->setOption($option, $defaultValue);
		}

		return $this->_options[$option];
	}
393715
protected function getValue($rawValue, $defaultValue = null)
    {
        if ($rawValue === null) {
            return $defaultValue;
        }

        try {
            return (new Resource($rawValue))->process();
        } catch (Exception $e) {
            // ...
        }
    }
911204
public function getValueFor($name, $defaultValue = null)
    {
        if (!$this->hasParameter($name)) {
            return $defaultValue;
        }
        return $this->parameters[strtolower($name)]->getValue();
    }
630778
public function get($key, $defaultValue = null)
    {
        $this->ensureValidEntryIdentifier($key);
        try {
            $rawResult = $this->backend->get($key);
        } catch (\Throwable $throwable) {
            throw new Exception('An exception was thrown in retrieving the key from the cache backend.', 1515193339722, $throwable);
        }
        if ($rawResult === false) {
            return $defaultValue;
        }

        return unserialize($rawResult);
    }
172765
protected function getParam($param = null, $defaultValue = null)
    {
        $request = $this->getRequest();
        if ($param === null) {
            return array_merge($request->getQuery(), $request->getParams());
        }

        $value = $request->getParam($param);
        if ($value === null) {
            return $request->getQuery($param, $defaultValue);
        }

        return $value;
    }
1158670
public static function getInfo($key = null, $defaultValue = null)
    {
        return null === $key ? static::$_info : array_get(static::$_info, $key, $defaultValue);
    }
844031
public function get($index, $defaultValue = null, $remove = false)
    {
        $key = $this->prepareIndex($index);

        if (!isset($this->memory[$key])) {
            return $defaultValue;
        }

        $return = $this->memory[$key];

        if ($remove) {
            unset($this->memory[$key]);
        }

        return $return;
    }
7484
public static function get(
        array $params,
        string $key,
        $default = null
    ) {
        if (self::has($params, $key)) {
            return $params[$key];
        }

        return $default;
    }
453774
public function getGet($name = null, $defaultValue = null) 
    {
        if ($name === null) {
            return $_GET;
        }
        return (isset($_GET[$name])) ? $_GET[$name] : $defaultValue;
    }
1186876
public static function getParam($key, $defaultValue = null, $module = null)
    {
        if(null !== $module) {
            return self::getParam(strtolower($module) . '.' . $key, self::getParam($key, $defaultValue));
        }
        $param = self::getInstance()->get($key);
        return (null !== $param) ? $param : $defaultValue;
    }
1169742
public function get($keyName, $defaultValue = null)
    {
        $this->initList();
        $keyName = strtolower($keyName);
        if (empty($this->list[$keyName])) {
            return $defaultValue;
        }
        return $this->list[$keyName];
    }
126846
public String get(String key, String defaultValue) {
        String v = get(key);
        if (v==null)    v=defaultValue;
        return v;
    }
1033872
public function get($key, $defaultValue = array())
    {
        $this->populateFlash($key);

        if ($this->has($key)) {
            return $this->data[$key];
        }

        return $defaultValue;
    }
1275807
public static function setValueFromPost(&$param, $defaultValue = '', $scope = null)
    {
        if (isset($_POST)) {
            $array = $_POST;
        } else {
            $array = [];
        }
        self::setValue($param, $array, $defaultValue, $scope);
    }
455180
public function getRequestParameter($name, $defaultValue = null)
    {
        if (isset($_POST[$name])) {
            $value = $_POST[$name];
        } elseif (isset($_GET[$name])) {
            $value = $_GET[$name];
        } else {
            $value = $defaultValue;
        }

        return $value;
    }