CBPRuntime :: checkActivityFilter: Bitrix method

      
<?php 
//  CBPRuntime :: checkActivityFilter()
//  /dist/bitrix/modules/bizproc/classes/general/runtime.php:759

    
private function checkActivityFilter($filter$documentType)
    {
        
$distrName CBPHelper::getDistrName();
        foreach (
$filter as $type => $rules)
        {
            
$found $this->checkActivityFilterRules($rules$documentType$distrName);
            if (
$type == 'INCLUDE' && !$found || $type == 'EXCLUDE' && $found)
                return 
false;
        }
        return 
true;
    }