CCrmCurrency::GetCurrencyLocalizations

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmCurrency
  4. GetCurrencyLocalizations
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_currency.php
  • Класс: \CCrmCurrency
  • Вызов: CCrmCurrency::GetCurrencyLocalizations
static function GetCurrencyLocalizations($currencyID)
{
	if (!Loader::includeModule('currency'))
	{
		return array();
	}

	$currencyID = strval($currencyID);
	if($currencyID === '')
	{
		return array();
	}

	$result = array();

	$dbResult = CCurrencyLang::GetList('', '', self::NormalizeCurrencyID($currencyID));
	if($dbResult)
	{
		while($item = $dbResult->Fetch())
		{
			$result[$item['LID']] = $item;
		}
	}

	return $result;
}

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