Read an attribute from the request, or get the default

@param string $name The attribute name.
@param mixed|null $default The default value if the attribute has not been set.
@return mixed
541715
public function getAttribute($name, $default = null)
    {
        if (in_array($name, $this->emulatedAttributes, true)) {
            return $this->{$name};
        }
        if (array_key_exists($name, $this->attributes)) {
            return $this->attributes[$name];
        }

        return $default;
    }
757765
public function getValue(string $name, $default = null)
    {
        if ($this->hasValue($name)) {
            return $this->data[$name];
        }

        return $default;
    }
152084
public function get($name, $default = null)
	{
		if (is_null($name))
		{
			return $this->data;
		}
		return \Arr::get($this->data, $name, $default);
	}
950080
public static function get($name = '@', $default = false)
	{
		$names = parseCfgName($name);
		if (isset($names[0]))
		{
			$first = array_shift($names);
			$obj = self::getInstance($first);
			if ($obj)
			{
				return $obj->get($names, $default);
			}
			else
			{
				return $default;
			}
		}
		else
		{
			return $default;
		}
	}
529
public static function get($name, $default = null)
    {
        if (isset(static::$jar[$name])) {
            return static::parse(static::$jar[$name]['value']);
        }

        $cookie = Request::$cookieData;

        if (!is_null($value = $cookie->get($name))) {
            return static::parse($value);
        }

        return $default;
    }
968889
public function get($name, $default = null)
    {
        $this->connect();
        $value = self::$instance->get($this->getCacheKey($name));
        if (is_null($value) || false === $value) {
            return $default;
        }

        return $this->unPackData($value);
    }
33375
public function getConfig($name, $default = null)
    {
        $value = $this->config->get($name);

        return $value === null ? $default : $value;
    }
702828
public function getAttribute($name, $default = null)
    {
        if ($this->hasAttribute($name)) {
            return $this->node->getAttribute($name);
        }

        return $default;
    }
1154225
public static function getVarGet($name,$default){
		self::init();
		$res=isset(self::$variables[$name])?self::$variables[$name]:$default;
		return $res;
		}
703696
public function getParameter($name, $default = null)
    {
        try {
            return ArrayHelper::get($this->getParameters(), $name, $default);
        } catch (Exception $ex) {
            return $default;
        }
    }
1354799
private function getParam(string $name, string $default = null): ?string
	{
		return $this->request->getPost($name, $default);
	}
2149
public function get($name, $default = null)
    {
        if (array_key_exists($name, $this->aliases)) {
            return $this->aliases[$name];
        } else {
            return $default;
        }
    }
1048931
public function get($name, $default = NULL) {

		if (!array_key_exists($name, $this->metaData)) {
			return $default;
		}

		return $this->metaData[$name];

	}
870741
public function getAttribute($name, $default = null)
    {
        if ($this->loaded) {
            return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
        }

        // Could be just hget, but Credis will return false?!
        $attributes = $this->client->hGetAll($this->getHashKey());
        return isset($attributes[$name]) ? $attributes[$name] : $default;
    }
392329
public function getPropertyWithDefault($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        return $this->data[$name];
    }
848585
public function get($name, $default = null)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return $default;
    }
1366472
private function read($name, $default = 0)
    {
        if (null === $seq = $this->find($name)) {
            return $this->init($name, $default);
        }

        $this->_em->refresh($seq);
        return $seq->getValue();
    }