CCrmProductPropertyRestProxy::registerEventBindings

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

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

	$bindings[CRestUtil::EVENTS]['onCrmProductPropertyAdd'] = self::createEventInfo('iblock', 'OnAfterIBlockPropertyAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmProductPropertyUpdate'] = self::createEventInfo('iblock', 'OnAfterIBlockPropertyUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmProductPropertyDelete'] = self::createEventInfo('iblock', 'OnAfterIBlockPropertyDelete', $callback);
}

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