- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmCurrencyRestProxy
- Вызов: CCrmCurrencyRestProxy::registerEventBindings
static function registerEventBindings(array &$bindings)
{
if(!isset($bindings[CRestUtil::EVENTS]))
{
$bindings[CRestUtil::EVENTS] = array();
}
$callback = array('CCrmCurrencyRestProxy', 'processEvent');
$bindings[CRestUtil::EVENTS]['onCrmCurrencyAdd'] = self::createEventInfo('currency', 'OnCurrencyAdd', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCurrencyUpdate'] = self::createEventInfo('currency', 'OnCurrencyUpdate', $callback);
$bindings[CRestUtil::EVENTS]['onCrmCurrencyDelete'] = self::createEventInfo('currency', 'OnCurrencyDelete', $callback);
}