CCrmTimelineCommentRestProxy::processMethodRequest

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

	throw new RestException('Method not found!', RestException::ERROR_METHOD_NOT_FOUND, CRestServer::STATUS_NOT_FOUND);
}

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