CCrmTimelineBindingRestProxy::processMethodRequest

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmTimelineBindingRestProxy
  4. processMethodRequest
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmTimelineBindingRestProxy
  • Вызов: CCrmTimelineBindingRestProxy::processMethodRequest
public function processMethodRequest($name, $nameDetails, $arParams, $nav, $server)
{
	$name = mb_strtoupper($name);
	if($name === 'BINDINGS')
	{
		$nameSuffix = mb_strtoupper(!empty($nameDetails)? implode('_', $nameDetails) : '');
		if ($nameSuffix === 'LIST' || $nameSuffix === 'FIELDS' )
		{
			return parent::processMethodRequest($nameSuffix, '', $arParams, $nav, $server);
		}
		elseif ($nameSuffix === 'BIND')
		{
			$fields = $this->resolveArrayParam($arParams, 'fields');
			return $this->bind($fields);
		}
		elseif ($nameSuffix === 'UNBIND')
		{
			$fields = $this->resolveArrayParam($arParams, 'fields');
			return $this->unbind($fields);
		}
	}
	throw new RestException('Method not found!', RestException::ERROR_METHOD_NOT_FOUND, CRestServer::STATUS_NOT_FOUND);
}

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