CCrmCompanyRestProxy::processMethodRequest

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

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