• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice_invoice.php
  • Класс: \CCrmInvoiceRestUtil
  • Вызов: CCrmInvoiceRestUtil::getParamArray
static function getParamArray(&$params, $name, $defaultValue = array())
{
	$result = $defaultValue;

	if (is_array($params))
	{
		$index = mb_strtolower($name);
		if (is_array($params[$index]) && count($params[$index]) > 0)
		{
			$result = $params[$index];
		}
		else
		{
			$index = mb_strtoupper($index);
			if (is_array($params[$index]) && count($params[$index]) > 0)
				$result = $params[$index];
		}
	}

	return $result;
}