...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmRestHelper
- Вызов: CCrmRestHelper::tryResolveParam
protected function tryResolveParam(array $arParams, $name, &$value) { $key = ''; // Check for lower case notation (type, etc) $nameLC = mb_strtolower($name); if(isset($arParams[$nameLC])) { $value = $arParams[$nameLC]; return true; } // Check for upper case notation (TYPE, etc) $nameUC = mb_strtoupper($name); if(isset($arParams[$nameUC])) { $value = $arParams[$nameUC]; return true; } // Check for capitalized notation (Type, etc) $capitalized = ucfirst($nameLC); if(isset($arParams[$capitalized])) { $value = $arParams[$capitalized]; return true; } return false; }