CBPRuntime::checkActivityFilter

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. checkActivityFilter
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::checkActivityFilter
public 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;
}

Добавить комментарий