public function initialize(array $config)
    {
        parent::initialize($config);

        if (isset($config['emptyValues'])) {
            $this->setConfig('emptyValues', $config['emptyValues'], false);
        }

        $collectionClass = $this->getConfig('collectionClass');
        if ($collectionClass) {
            $this->_collectionClass = $collectionClass;

            return;
        }

        $defaultCollectionClass = sprintf(
            '%s\Model\Filter\%sCollection',
            Configure::read('App.namespace'),
            $this->getTable()->getAlias()
        );
        if (class_exists($defaultCollectionClass)) {
            $this->_collectionClass = $defaultCollectionClass;
        }
    }
public function initialize(array $config)
    {
        parent::initialize($config);

        if (isset($config['emptyValues'])) {
            $this->setConfig('emptyValues', $config['emptyValues'], false);
        }

        $collectionClass = $this->getConfig('collectionClass');
        if ($collectionClass) {
            $this->_collectionClass = $collectionClass;

            return;
        }

        $defaultCollectionClass = sprintf(
            '%s\Model\Filter\%sCollection',
            Configure::read('App.namespace'),
            $this->getTable()->getAlias()
        );
        if (class_exists($defaultCollectionClass)) {
            $this->_collectionClass = $defaultCollectionClass;
        }
    }
public function initialize ( array $ config ) { parent :: initialize ( $ config ) ; if ( isset ( $ config [ 'emptyValues' ] ) ) { $ this -> setConfig ( 'emptyValues' , $ config [ 'emptyValues' ] , false ) ; } $ collectionClass = $ this -> getConfig ( 'collectionClass' ) ; if ( $ collectionClass ) { $ this -> _collectionClass = $ collectionClass ; return ; } $ defaultCollectionClass = sprintf ( '%s\Model\Filter\%sCollection' , Configure :: read ( 'App.namespace' ) , $ this -> getTable ( ) -> getAlias ( ) ) ; if ( class_exists ( $ defaultCollectionClass ) ) { $ this -> _collectionClass = $ defaultCollectionClass ; } }
Overwrite emptyValues config value

@param array $config Config
@return void
Overwrite emptyValues config value