CCrmInvoiceRestProxy::registerEventBindings

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

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

	// user field events
	$bindings[CRestUtil::EVENTS]['onCrmInvoiceUserFieldAdd'] = self::createEventInfo('crm', 'OnAfterCrmRestInvoiceUserFieldAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmInvoiceUserFieldUpdate'] = self::createEventInfo('crm', 'OnAfterCrmRestInvoiceUserFieldUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmInvoiceUserFieldDelete'] = self::createEventInfo('crm', 'OnAfterCrmRestInvoiceUserFieldDelete', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmInvoiceUserFieldSetEnumValues'] = self::createEventInfo('crm', 'OnAfterCrmRestInvoiceUserFieldSetEnumValues', $callback);
}

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