Пример #1
0
 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;
 }