• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/comparator.php
  • Класс: BitrixSaleLocationComparator
  • Вызов: Comparator::getConcreteComparatorClassaName
static function getConcreteComparatorClassaName($type)
{
	if($type === self::LOCALITY || $type === 'LOCALITY' || $type == 'CITY')
		$result = 'ComparatorLocality';
	elseif($type === self::DISTRICT || $type === 'SUBREGION')
		$result = 'ComparatorDistrict';
	elseif($type === self::REGION || $type === 'REGION')
		$result = 'ComparatorRegion';
	elseif($type === self::COUNTRY || $type === 'COUNTRY')
		$result = 'ComparatorCountry';
	else
		throw new ArgumentOutOfRangeException('type');

	return 'BitrixSaleLocation\'.$result;
}