• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitypreset.php
  • Класс: Bitrix\Crm\EntityPreset
  • Вызов: EntityPreset::getCountryList
static function getCountryList()
{
	if (self::$countryList === null)
	{
		$countryList = array();
		$countries = GetCountryArray();
		if (isset($countries['reference_id'])
			&& isset($countries['reference'])
			&& is_array($countries['reference_id'])
			&& is_array($countries['reference']))
		{
			$refId = &$countries['reference_id'];
			$ref = &$countries['reference'];
			foreach ($ref as $id => $val)
				$countryList[$refId[$id]] = $val;
		}

		self::$countryList = $countryList;
	}

	return self::$countryList;
}