public function saveGridFilters()
    {
        $this->defineModelShortClassName();

        if (!isset(Yii::$app->session[$this->sessionVarName])) {
            Yii::$app->session[$this->sessionVarName] = $this->owner->attributes;
        }

        $params = Yii::$app->request->queryParams;
        if (isset($params[$this->modelShortClassName])) {
            # Check if the filter values changed
            $this->filtersChanged = serialize(Yii::$app->session[$this->sessionVarName]) !== serialize($params[$this->modelShortClassName]) ? true : false;
            Yii::$app->session[$this->sessionVarName] = $params[$this->modelShortClassName];
        }
    }
public function saveGridFilters()
    {
        $this->defineModelShortClassName();

        if (!isset(Yii::$app->session[$this->sessionVarName])) {
            Yii::$app->session[$this->sessionVarName] = $this->owner->attributes;
        }

        $params = Yii::$app->request->queryParams;
        if (isset($params[$this->modelShortClassName])) {
            # Check if the filter values changed
            $this->filtersChanged = serialize(Yii::$app->session[$this->sessionVarName]) !== serialize($params[$this->modelShortClassName]) ? true : false;
            Yii::$app->session[$this->sessionVarName] = $params[$this->modelShortClassName];
        }
    }
public function saveGridFilters ( ) { $ this -> defineModelShortClassName ( ) ; if ( ! isset ( Yii :: $ app -> session [ $ this -> sessionVarName ] ) ) { Yii :: $ app -> session [ $ this -> sessionVarName ] = $ this -> owner -> attributes ; } $ params = Yii :: $ app -> request -> queryParams ; if ( isset ( $ params [ $ this -> modelShortClassName ] ) ) { # Check if the filter values changed $ this -> filtersChanged = serialize ( Yii :: $ app -> session [ $ this -> sessionVarName ] ) !== serialize ( $ params [ $ this -> modelShortClassName ] ) ? true : false ; Yii :: $ app -> session [ $ this -> sessionVarName ] = $ params [ $ this -> modelShortClassName ] ; } }
Saves the grid's current filters.
Saves the grid s current filters .