CCrmRequisiteBankDetailRestProxy::processEvent

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRequisiteBankDetailRestProxy
  4. processEvent
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRequisiteBankDetailRestProxy
  • Вызов: CCrmRequisiteBankDetailRestProxy::processEvent
static function processEvent(array $arParams, array $arHandler)
{
	$eventName = $arHandler['EVENT_NAME'];
	switch(mb_strtolower($eventName))
	{
		case 'oncrmbankdetailadd':
		case 'oncrmbankdetailupdate':
		case 'oncrmbankdetaildelete':
			/* @var Main\Event $event */
			$event = $arParams[0];
			$ID = $event->getParameter('id');
			break;
		default:
			throw new RestException("The Event \"{$eventName}\" is not supported in current context");
	}

	if($ID === '')
	{
		throw new RestException("Could not find entity ID in fields of event \"{$eventName}\"");
	}
	return array('FIELDS' => array('ID' => $ID));
}

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