CCrmProductSectionRestProxy::registerEventBindings

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

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

	$bindings[CRestUtil::EVENTS]['onCrmProductSectionAdd'] = self::createEventInfo('iblock', 'OnAfterIBlockSectionAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmProductSectionUpdate'] = self::createEventInfo('iblock', 'OnAfterIBlockSectionUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmProductSectionDelete'] = self::createEventInfo('iblock', 'OnAfterIBlockSectionDelete', $callback);
}

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