• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/comparator.php
  • Класс: BitrixSaleLocationComparator
  • Вызов: Comparator::isLocationsEqual
static function isLocationsEqual($location1, $location2)
{
	foreach($location1 as $type => $name)
	{
		if(empty($location2[$type]))
			continue;

		if($location1[$type] <> '' && $location2[$type] <> '')
		{
			/** @var Comparator  $comparator */
			$comparator = self::getConcreteComparatorClassaName($type);

			if(!$comparator::isEntityEqual($location1[$type], $location2[$type]))
				return false;
		}
	}

	return true;
}