CCrmRequisitePresetRestProxy::getCountriesInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRequisitePresetRestProxy
  4. getCountriesInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRequisitePresetRestProxy
  • Вызов: CCrmRequisitePresetRestProxy::getCountriesInfo
protected function getCountriesInfo()
{
	$result = array();

	$countriesInfo = EntityPreset::getCountriesInfo();

	foreach (EntityRequisite::getAllowedRqFieldCountries() as $countryId)
	{
		$countryInfo = is_array($countriesInfo[$countryId]) ? $countriesInfo[$countryId] : array();
		$result[] = array(
				'ID' => $countryId,
				'CODE' => $countryInfo['CODE'] ?? '',
				'TITLE' => $countryInfo['TITLE'] ?? ''
		);
	}

	return $result;
}

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