FOF30\Model\DataModel::blacklistFilters PHP Method

blacklistFilters() public method

Set or get the backlisted filters
public blacklistFilters ( mixed $list = null, boolean $reset = false ) : void | array
$list mixed A filter or list of filters to backlist. If null return the list of backlisted filter
$reset boolean Reset the blacklist if true
return void | array Return an array of value if $list is null
    public function blacklistFilters($list = null, $reset = false)
    {
        if (!isset($list)) {
            return $this->getBehaviorParam('blacklistFilters', array());
        }
        if (is_string($list)) {
            $list = (array) $list;
        }
        if (!$reset) {
            $list = array_unique(array_merge($this->getBehaviorParam('blacklistFilters', array()), $list));
        }
        $this->setBehaviorParam('blacklistFilters', $list);
    }