CCrmInvoiceRecurringRestProxy::processMethodRequest

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInvoiceRecurringRestProxy
  4. processMethodRequest
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmInvoiceRecurringRestProxy
  • Вызов: CCrmInvoiceRecurringRestProxy::processMethodRequest
public function processMethodRequest($name, $nameDetails, $arParams, $nav, $server)
{
	$name = mb_strtoupper($name);
	if($name === 'RECURRING')
	{
		$nameSuffix = mb_strtoupper(!empty($nameDetails)? implode('_', $nameDetails) : '');
		switch ($nameSuffix)
		{
			case 'EXPOSE':
				return $this->expose($this->resolveEntityID($arParams));
			case 'FIELDS':
			case 'ADD':
			case 'GET':
			case 'LIST':
			case 'UPDATE':
			case 'DELETE':
				return parent::processMethodRequest($nameSuffix, '', $arParams, $nav, $server);
		}
	}

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

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