CCrmCurrency::GetList

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

	if(!is_array($arOrder))
	{
		$arOrder = array();
	}

	$arOrderFields = array_keys($arOrder);
	if(count($arOrderFields) > 0)
	{
		$by = $arOrderFields[0];
		$order = $arOrder[$by];
	}
	else
	{
		$by = 'sort';
		$order = 'asc';
	}

	$langID = strval($langID);
	if($langID === '')
	{
		$langID = LANGUAGE_ID;
	}

	return CCurrency::GetList($by, $order, $langID);
}

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