Prado\TApplication::getGlobalState PHP Method

getGlobalState() public method

A global value is one that is persistent across users sessions and requests.
public getGlobalState ( $key, $defaultValue = null ) : mixed
return mixed the global value corresponding to $key
    public function getGlobalState($key, $defaultValue = null)
    {
        return isset($this->_globals[$key]) ? $this->_globals[$key] : $defaultValue;
    }