• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entityaddress.php
  • Класс: Bitrix\Crm\EntityAddress
  • Вызов: EntityAddress::mapEntityField
static function mapEntityField($fieldName, $typeID, array $aliases = null)
{
	if(!EntityAddressType::isDefined($typeID))
	{
		$typeID = EntityAddressType::Primary;
	}

	if(is_array($aliases) && isset($aliases[$fieldName]))
	{
		$fieldName = $aliases[$fieldName];
	}

	$map = static::getInvertedFieldMap($typeID);
	return isset($map[$fieldName]) ? $map[$fieldName] : $fieldName;
}