CCrmItemRestProxy::processMethodRequest

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmItemRestProxy
  4. processMethodRequest
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmItemRestProxy
  • Вызов: CCrmItemRestProxy::processMethodRequest
public function processMethodRequest($name, $nameDetails, $arParams, $nav, $server)
{
	$name = mb_strtoupper($name);

	if($name === 'DETAILS')
	{
		$entityTypeId = $arParams['entityTypeId'] ?? $arParams['ENTITY_TYPE_ID'] ?? 0;

		$editorRequestDetails = $nameDetails;
		$editorRequestName = array_shift($editorRequestDetails);
		$entityEditorProxy = new CCrmEntityEditorRestProxy($entityTypeId);

		return $entityEditorProxy->processMethodRequest($editorRequestName, $editorRequestDetails, $arParams, $nav, $server);
	}

	throw new RestException("Resource '{$name}' is not supported in current context.");
}

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