public function setFilterConfig($filter, $config)
    {
        if (!$this->hasFilter($filter)) {
            throw new Exception("No such filter '$filter' exists.");
        }

        $this->config[$filter] = $config;
    }
public function setFilterConfig($filter, $config)
    {
        if (!$this->hasFilter($filter)) {
            throw new Exception("No such filter '$filter' exists.");
        }

        $this->config[$filter] = $config;
    }
public function setFilterConfig ( $ filter , $ config ) { if ( ! $ this -> hasFilter ( $ filter ) ) { throw new Exception ( "No such filter '$filter' exists." ) ; } $ this -> config [ $ filter ] = $ config ; }
Set configuration for a certain filter.

@param string $filter the label of the filter to set configuration for.
@param array  $config the configuration as an array.

@return void
Set configuration for a certain filter .