CCrmDealRestProxy::processMoveToCategoryEvent

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmDealRestProxy
  4. processMoveToCategoryEvent
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmDealRestProxy
  • Вызов: CCrmDealRestProxy::processMoveToCategoryEvent
static function processMoveToCategoryEvent(array $arParams, array $arHandler)
{
	if (!isset($arParams[0]) || !($arParams[0] instanceof \Bitrix\Main\Event))
	{
		throw new RestException("Wrong event");
	}
	/** @var \Bitrix\Main\Event $event */
	$event = $arParams[0];

	return [
		'FIELDS' => [
			'ID' => $event->getParameter('id'),
			'CATEGORY_ID' => $event->getParameter('categoryId'),
			'STAGE_ID' => $event->getParameter('stageId'),
		]
	];
}

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