Prado\Security\TUser::setState PHP Метод

setState() защищенный Метод

This function is designed to be used by TUser descendant classes who want to store additional user information in user session. By storing a variable using this function, the variable may be retrieved back later using {@link getState}. The variable will be persistent across page requests during a user session.
См. также: getState
protected setState ( $key, $value, $defaultValue = null )
    protected function setState($key, $value, $defaultValue = null)
    {
        if ($value === $defaultValue) {
            unset($this->_state[$key]);
        } else {
            $this->_state[$key] = $value;
        }
        $this->_stateChanged = true;
    }