• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/import/outlookcsvfileimport.php
  • Класс: Bitrix\Crm\Import\OutlookCsvFileImport
  • Вызов: OutlookCsvFileImport::getFieldMatchCode
static function getFieldMatchCode($fieldID)
{
	if(self::$fieldMatchCodes !== null && isset(self::$fieldMatchCodes[$fieldID]))
	{
		return self::$fieldMatchCodes[$fieldID];
	}

	$fields = self::getFields();
	$fieldName = isset($fields[$fieldID]) ? $fields[$fieldID]['NAME'] : $fieldID;

	if(self::$fieldMatchCodes === null)
	{
		self::$fieldMatchCodes = array();
	}

	return (self::$fieldMatchCodes[$fieldID] = mb_strtoupper(str_replace(' ', '', $fieldName)));
}