CCrmRestHelper::resolveParamName

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRestHelper
  4. resolveParamName
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRestHelper
  • Вызов: CCrmRestHelper::resolveParamName
static function resolveParamName(array &$arParams, array $nameParts)
{
	if(empty($nameParts))
	{
		return '';
	}

	$keys = self::prepareKeys(
		$nameParts,
		array(
			self::PARAM_KEY_SCHEME_LOWER_CASE,
			self::PARAM_KEY_SCHEME_UPPER_CASE,
			self::PARAM_KEY_SCHEME_LOWER_CAMEL_CASE,
			self::PARAM_KEY_SCHEME_UPPER_CAMEL_CASE
		)
	);

	foreach($keys as $key)
	{
		if(isset($arParams[$key]))
		{
			return $key;
		}
	}

	return '';
}

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