Get a value from the session's old input.

@param  string $name
@return mixed
964381
public function old( $name ) {
		if ( ! $this->session ) {
			return null;
		}

		$payload = $this->session->get_old_input(
			$key = Utils::to_dots_key( $name )
		);

		if ( ! is_array( $payload ) ) {
			return $payload;
		}

		if ( ! in_array( $this->type, [ 'select', 'checkbox' ] ) ) {
			if ( ! isset( $this->payload[ $key ] ) ) {
				$this->payload[ $key ] = new Collection( $payload );
			}

			if ( ! empty( $this->payload[ $key ] ) ) {
				return $this->payload[ $key ]->shift();
			}
		}

		return $payload;
	}
630942
public static function get($name = '')
    {
        empty(self::$init) && self::init();

        return empty($name) ? $_SESSION : (isset($_SESSION[$name]) ? $_SESSION[$name] : false);
    }
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;
		}
	}
367742
public static function get(string $name): ?string
    {
        $data = Session::get($name, null, self::$namespace);
        if (is_array($data) && array_key_exists('token', $data)) {
            return $data['token'];
        }
        return null;
    }
1205102
public function read($name = null)
    {

        if (!isset($_SESSION)) {
            return null;
        }

        if ($name === null) {
            return isset($_SESSION) ? $_SESSION : [];
        }

        return Hash::get($_SESSION, $name);
    }
1239131
public function getValue(string $name)
	{
		if(array_key_exists($name, $this->columns))
		{
			// It's a database column

			return $this->getColumnValue($name);
		}
		elseif(array_key_exists($name, $this->related))
		{
			// The column is a cached or eagerly loaded relation

			return $this->related[$name];
		}
		elseif($this->isRelation($name))
		{
			// The column is a relation. Lazy load the record(s) and cache them

			return $this->related[$name] = $this->$name()->getRelated();
		}

		// All options have been exhausted so we'll throw an exception

		throw new RuntimeException(vsprintf('Unknown column or relation [ %s ].', [$name]));
	}
115904
public function &__get($name)
    {
        // This method must return a reference and not use ternary operators for __set()ing multi-dimensional arrays
        // http://stackoverflow.com/questions/4310473/using-set-with-arrays-solved-but-why
        // http://stackoverflow.com/questions/5966918/return-null-by-reference-via-get
        switch ($name) {
            case 'global':
                if (is_null(static::$global)) {
                    static::$global = new Container;
                }

                return static::$global;
                break;
            case 'session':
                if (is_null(static::$session)) {
                    static::$session = new Session;
                }

                return static::$session;
                break;
            case 'request':
            case 'dir':
            case 'url':
            case 'html':
                return $this->$name;
                break;
            default:
                return $this->html[strtolower($name)];
                break;
        }
    }
714027
public static function get($name)
    {
        if (isset($_REQUEST[$name])) {
            return $_REQUEST[$name];
        }

        if (isset($_GET[$name])) {
            return $_GET[$name];
        }

        return;
    }
1297561
public function get($name, $default = null)
    {
        $parsed = explode('.', $name);

        $result = $_SESSION;

        while ($parsed) {
            $next = array_shift($parsed);

            if (isset($result[$next])) {
                $result = $result[$next];
            } else {
                return $default;
            }
        }

        return $result;
    }
1082610
public function get($name)
    {
        $controlValue = $this->getControlValue($name);

        $value = $controlValue;

        switch ($controlValue) {
            case null:
                // break intentionally omitted
            case self::WURFL_CONTROL_DEFAULT:
                // The value is null if it is not in the loaded WURFL, it's default if it is loaded and not overridden
                // The control capability was not used, use the \Wurfl\VirtualCapability\VirtualCapability provider
                $value = $this->getObject($name)->getValue();
                break;
            case 'force_true':
                $value = true;
                break;
            case 'force_false':
                $value = false;
                break;
            default:
                // nothing to do here
                break;
        }

        // Use the control value from WURFL
        return $value;
    }
473331
public function getValue(string $name)
    {
        if (isset($this->valuesAsArray[$name])) {
            return $this->valuesAsArray[$name];
        }

        if (!array_key_exists($name, $this->values)) {
            return null;
        }

        $return = $this->values[$name]['value'] ?? null;

        if ($return === '') {
            $return = null;
        }

        return $return;
    }
718037
public function getValue($name)
    {
        $value = null;
        if ($this->has($name)) {
            $value = call_user_func_array(
                [$this->_inputs[$name], 'getValue'],
                [$name]
            );
        }
        return $value;
    }
520815
public function getValue($name)
    {
        $cookie = $this->get($name);

        return null === $cookie ? null : $cookie->getValue();
    }
1259612
public function get($name = ''){
            if(false === $var = $this->getRedisObj()->get($name)){
                $this->getRedisObj()->set($name, $var = parent::get($name));
            }

            return $var;
        }
901475
public function getValue($name)
    {
        if (isset($_SESSION[$this->currentArea][$name])) {
            return $_SESSION[$this->currentArea][$name];
        } else {
            return null;
        }
    }
1274161
public function get($name = ''){
            if(false === $var = $this->getMemcacheObj()->get($name)){
                $this->getMemcacheObj()->set($name, $var = parent::get($name));
            }

            return $var;
        }
1259599
public function getRecurseAttribute($name)
    {
        $value = $this->getAttribute($name);
        $parent = $this->parent;
        if($value === null && $parent)
        {
            $value = $parent->getRecurseAttribute($name);
            $this->setAttribute($name, $value);
            return $value;
        }

        return $value;
    }