CCrmLeadRestProxy::registerEventBindings

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

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

	$bindings[CRestUtil::EVENTS]['onCrmLeadAdd'] = self::createEventInfo('crm', 'OnAfterCrmLeadAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmLeadUpdate'] = self::createEventInfo('crm', 'OnAfterCrmLeadUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmLeadDelete'] = self::createEventInfo('crm', 'OnAfterCrmLeadDelete', $callback);

	// user field events
	$bindings[CRestUtil::EVENTS]['onCrmLeadUserFieldAdd'] = self::createEventInfo('crm', 'OnAfterCrmRestLeadUserFieldAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmLeadUserFieldUpdate'] = self::createEventInfo('crm', 'OnAfterCrmRestLeadUserFieldUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmLeadUserFieldDelete'] = self::createEventInfo('crm', 'OnAfterCrmRestLeadUserFieldDelete', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmLeadUserFieldSetEnumValues'] = self::createEventInfo('crm', 'OnAfterCrmRestLeadUserFieldSetEnumValues', $callback);
}

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