• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/trigger/apptrigger.php
  • Класс: Bitrix\Crm\Automation\Trigger\AppTrigger
  • Вызов: AppTrigger::checkApplyRules
public function checkApplyRules(array $trigger)
{
	if (!parent::checkApplyRules($trigger))
	{
		return false;
	}

	$appA = (int)$trigger['APPLY_RULES']['APP_ID'];
	$codeA = (string)$trigger['APPLY_RULES']['CODE'];

	$appB = (int)$this->getInputData('APP_ID');
	$codeB = (string)$this->getInputData('CODE');

	return ($appA === $appB && $codeA === $codeB);
}