Returns a filter callable for the configured blacklist.

@return callable The callable.
426999
public function getBlacklistFilter()
    {
        $blacklist = $this->getBlacklist();
        $base = '/^'
              . preg_quote($this->getBasePath() . DIRECTORY_SEPARATOR, '/')
              . '/';

        return function (SplFileInfo $file) use ($base, $blacklist) {
            $path = Path::canonical(
                preg_replace($base, '', $file->getPathname())
            );

            if (in_array($path, $blacklist)) {
                return false;
            }

            return null;
        };
    }
1300143
protected function getFilters()
    {
        $filters = [];
        foreach ($this->filters as $alias => $opt) {
            if (!is_array($opt)) {
                $opt = ['filter' => $opt];
            }
            if (!isset($opt['filter'])) {
                throw new InvalidConfigException('Option "filter" required for filter alias "' . $alias . '".');
            }
            if (!isset($this->classmap[$opt['filter']])) {
                throw new InvalidConfigException('Unknown filter "' . $opt['filter'] . '".');
            }
            if (isset($opt['options'])) {
                if (!is_array($opt['options'])) {
                    throw new InvalidConfigException('Expects option "options" to be array, ' .
                        gettype($opt['options']) . ' given in filter "' . $opt['filter'] . '".');
                }
                $filters[$alias] = $this->createFilter($opt['filter'], $opt['options']);
            }
            else {
                $filters[$alias] = $this->createFilter($opt['filter']);
            }
        }
        return $filters;
    }
56073
def _where(self, filter_fn):
        '''  '''
        assert callable(filter_fn), 'filter_fn needs to be callable'
        return VList(i for i in self if filter_fn(i()))
52825
public function getCurrentFilters()
    {
        $sessionValues = $this->session->get(Configuration::SESSION_PREFIX.'filters', null);

        return $sessionValues !== null ? $sessionValues : $this->getDefaultFilters();
    }
1075910
protected function getDefaultFunctionaryFilter()
    {
        $filter = new FunctionaryFilter();
        $filter->setInsideAssociationID($this->arguments[self::ARGUMENT_INSIDEASSOCIATIONID]);

        return $filter;
    }
1028633
public function defaults()
	{
		// Reset filters.
        foreach ($this->getProfileConfig('filters') as $filter) {
        	$this->addFilter(new $filter);
        }

        // Reset hooks.
        foreach ($this->getProfileConfig('hooks') as $hook => $config) {
        	$this->addHook(new $hook($config));
        }

        // Reset black & white list.
        $this->whitelist($this->getProfileConfig('whitelist'));
        $this->blacklist($this->getProfileConfig('blacklist'));

        // Add configs dir as path.
        $this->addPath($this->_configs->get('bbcoder::cpath'));

        return $this;
	}
889676
protected function filter()
    {
        $filter = null;

        if (   (!$filter = $this->is("classFilter"))
            && (!$filter = $this->is("idFilter"))
            && (!$filter = $this->is("attrFilter"))
            && (!$filter = $this->is("pseudoFilter"))
        ) {
            return false;
        }
        return $filter;
    }
1370467
public Filter<S> getFilter() {
        Filter<S> filter = null;
        for (QueryExecutor<S> executor : mExecutors) {
            Filter<S> subFilter = executor.getFilter();
            filter = filter == null ? subFilter : filter.or(subFilter);
        }
        return filter;
    }
799073
protected function getDefaultFunctionariesFilter()
    {
        $filter = new FunctionariesFilter();
        $filter->setInsideAssociationID($this->arguments[self::ARGUMENT_INSIDEASSOCIATIONID]);

        return $filter;
    }
1187758
protected function GetCurrentFilter()
    {
        static $aFilter = 'x';
        if ('x' == $aFilter) {
            $oShop = TdbShop::GetInstance();
            $aFilter = $oShop->GetActiveFilter();
        }

        return $aFilter;
    }
62809
public function getIterator()
    {
        $els = parent::getIterator();

        return new CallbackFilterIterator($els, function (&$current) {
                /** @var EntityProxy $current */
                $current = $current->getProxy();

                return true;
            }
        );
    }
1139611
public function filter()
    {
        $opts = func_get_args();
        $callable = array_shift($opts);

        // allow for a false call
        if (!is_callable($callable)) {
            return $this;
        }

        array_unshift($opts, $this);
        return call_user_func_array($callable, $opts);
    }
835299
public CmsLockFilter getBlockingFilter() {

        if (m_blockingFilter == null) {
            m_blockingFilter = CmsLockFilter.FILTER_ALL;
            m_blockingFilter = m_blockingFilter.filterNotLockableByUser(getCms().getRequestContext().getCurrentUser());
        }
        return m_blockingFilter;
    }
539785
public function getFilters()
    {
        if (null === $this->sorted) {
            if (!count($this->filters)) {
                $this->sorted = array();
            } else {
                ksort($this->filters);
                $this->sorted = call_user_func_array('array_merge', $this->filters);
            }
        }
        return $this->sorted;
    }
805117
protected function getDefaultFunctionariesFilter()
    {
        $filter = new FunctionariesFilter();

        $filter->setInsideAssociationID($this->settings['associationID']);

        $filter->setRole($this->settings['filterFunctionaries']['defaultValue']['role']);

        return $filter;
    }
1180738
public function getRepositoryFilter()
    {
        if (null === $this->repositoryFilter) {
            $this->setRepositoryFilter(new RepositoryFilter($this));
        }
        return $this->repositoryFilter;
    }
1243892
public function filter(?callable $callable = null)
	{
		if($callable === null)
		{
			return new static(array_filter($this->items));
		}

		return new static(array_filter($this->items, $callable, ARRAY_FILTER_USE_BOTH));
	}