protected function setFilters(array $filters, $permanent = true)
    {
        foreach ($filters as $columnId => $value) {
            if ($permanent) {
                $this->permanentFilters[$columnId] = $value;
            } else {
                $this->defaultFilters[$columnId] = $value;
            }
        }

        return $this;
    }
protected function setFilters(array $filters, $permanent = true)
    {
        foreach ($filters as $columnId => $value) {
            if ($permanent) {
                $this->permanentFilters[$columnId] = $value;
            } else {
                $this->defaultFilters[$columnId] = $value;
            }
        }

        return $this;
    }
protected function setFilters ( array $ filters , $ permanent = true ) { foreach ( $ filters as $ columnId => $ value ) { if ( $ permanent ) { $ this -> permanentFilters [ $ columnId ] = $ value ; } else { $ this -> defaultFilters [ $ columnId ] = $ value ; } } return $ this ; }
Set value for filters.

@param array $filters   Hash of columnName => initValue
@param bool  $permanent filters ?

@return self
Set value for filters .