CCrmContactRestProxy::processMethodRequest

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmContactRestProxy
  4. processMethodRequest
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmContactRestProxy
  • Вызов: CCrmContactRestProxy::processMethodRequest
public function processMethodRequest($name, $nameDetails, $arParams, $nav, $server)
{
	$name = mb_strtoupper($name);
	if($name === 'COMPANY')
	{
		$bindRequestDetails = $nameDetails;
		$bindRequestName = array_shift($bindRequestDetails);
		$bindingProxy = new CCrmEntityBindingProxy(CCrmOwnerType::Contact, CCrmOwnerType::Company);
		return $bindingProxy->processMethodRequest($bindRequestName, $bindRequestDetails, $arParams, $nav, $server);
	}
	return parent::processMethodRequest($name, $nameDetails, $arParams, $nav, $server);
}

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