CCrmCurrencyRestProxy::registerEventBindings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmCurrencyRestProxy
  4. registerEventBindings
  • Модуль: 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);
}

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