CCrmMeasureRestProxy::registerEventBindings

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

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

	$bindings[CRestUtil::EVENTS]['onCrmMeasureAdd'] = self::createEventInfo(
		'catalog',
		'MeasureOnAfterAdd',
		$callback
	);
	$bindings[CRestUtil::EVENTS]['onCrmMeasureUpdate'] = self::createEventInfo(
		'catalog',
		'MeasureOnAfterUpdate',
		$callback
	);
	$bindings[CRestUtil::EVENTS]['onCrmMeasureDelete'] = self::createEventInfo(
		'catalog',
		'MeasureOnAfterDelete',
		$callback
	);
}

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