- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmCompanyRestProxy
- Вызов: CCrmCompanyRestProxy::registerEventBindings
static function registerEventBindings(array &$bindings)
{
if(!isset($bindings[CRestUtil::EVENTS]))
{
$bindings[CRestUtil::EVENTS] = array();
}
$callback = array('CCrmCompanyRestProxy', 'processEvent');
$bindings[CRestUtil::EVENTS]['onCrmCompanyAdd'] = self::createEventInfo('crm', 'OnAfterCrmCompanyAdd', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCompanyUpdate'] = self::createEventInfo('crm', 'OnAfterCrmCompanyUpdate', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCompanyDelete'] = self::createEventInfo('crm', 'OnAfterCrmCompanyDelete', $callback);
// user field events
$bindings[CRestUtil::EVENTS]['onCrmCompanyUserFieldAdd'] = self::createEventInfo('crm', 'OnAfterCrmRestCompanyUserFieldAdd', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCompanyUserFieldUpdate'] = self::createEventInfo('crm', 'OnAfterCrmRestCompanyUserFieldUpdate', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCompanyUserFieldDelete'] = self::createEventInfo('crm', 'OnAfterCrmRestCompanyUserFieldDelete', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCompanyUserFieldSetEnumValues'] = self::createEventInfo('crm', 'OnAfterCrmRestCompanyUserFieldSetEnumValues', $callback);
}