CCrmCurrencyHelper::PrepareListItems

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

	$ary = array();
	$dbCurrencies = CCurrency::GetList('sort', 'asc');
	while ($arCurrency = $dbCurrencies->Fetch())
	{
		$arCurrency['FULL_NAME'] = (string)$arCurrency['FULL_NAME'];
		$ary[$arCurrency['CURRENCY']] = ($arCurrency['FULL_NAME'] !== ''
			? $arCurrency['FULL_NAME']
			: $arCurrency['CURRENCY']
		);
	}

	return $ary;
}

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