CCrmRequisiteRestProxy::registerEventBindings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRequisiteRestProxy
  4. registerEventBindings
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRequisiteRestProxy
  • Вызов: CCrmRequisiteRestProxy::registerEventBindings
static function registerEventBindings(array &$bindings)
{
	if(!isset($bindings[CRestUtil::EVENTS]))
	{
		$bindings[CRestUtil::EVENTS] = array();
	}

	$callback = array('CCrmRequisiteRestProxy', 'processEvent');

	$bindings[CRestUtil::EVENTS]['onCrmRequisiteAdd'] = self::createEventInfo('crm', 'OnAfterRequisiteAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteUpdate'] = self::createEventInfo('crm', 'OnAfterRequisiteUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteDelete'] = self::createEventInfo('crm', 'OnAfterRequisiteDelete', $callback);

	// user field events
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteUserFieldAdd'] = self::createEventInfo('crm', 'OnAfterCrmRestRequisiteUserFieldAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteUserFieldUpdate'] = self::createEventInfo('crm', 'OnAfterCrmRestRequisiteUserFieldUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteUserFieldDelete'] = self::createEventInfo('crm', 'OnAfterCrmRestRequisiteUserFieldDelete', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmRequisiteUserFieldSetEnumValues'] = self::createEventInfo('crm', 'OnAfterCrmRestRequisiteUserFieldSetEnumValues', $callback);
}

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