code/libraries/joomlatools/library/controller/behavior/persistable.php
protected function _afterBrowse(KControllerContextInterface $context)
    {
        $state  = $this->getModel()->getState();

        $vars = array();
        foreach($state->toArray() as $var)
        {
            if(!$var->unique && !$var->internal) {
                $vars[$var->name] = $var->value;
            }
        }

        $context->user->set($this->_getStateKey($context), $vars);
    }
protected function _afterBrowse(KControllerContextInterface $context)
    {
        $state  = $this->getModel()->getState();

        $vars = array();
        foreach($state->toArray() as $var)
        {
            if(!$var->unique && !$var->internal) {
                $vars[$var->name] = $var->value;
            }
        }

        $context->user->set($this->_getStateKey($context), $vars);
    }
protected function _afterBrowse ( KControllerContextInterface $ context ) { $ state = $ this -> getModel ( ) -> getState ( ) ; $ vars = array ( ) ; foreach ( $ state -> toArray ( ) as $ var ) { if ( ! $ var -> unique && ! $ var -> internal ) { $ vars [ $ var -> name ] = $ var -> value ; } } $ context -> user -> set ( $ this -> _getStateKey ( $ context ) , $ vars ) ; }
Saves the model state in the session

@param 	KControllerContextInterface $context The active controller context
@return 	void
Saves the model state in the session