• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/order/matcher/requisitematcher.php
  • Класс: Bitrix\Crm\Order\Matcher\RequisiteMatcher
  • Вызов: RequisiteMatcher::parseLocationAddress
protected function parseLocationAddress($value)
{
	$addresses = [];

	if (!empty($value))
	{
		$locationMap = $this->getLocationTypeToAddressMap();
		$locationChain = LocationTable::getPathToNodeByCode(
			$value,
			['select' => ['TYPE_ID', 'LOC_NAME' => 'NAME.NAME']]
		);
		foreach ($locationChain as $location)
		{
			if (!empty($locationMap[$location['TYPE_ID']]))
			{
				$addresses[$locationMap[$location['TYPE_ID']]] = $location['LOC_NAME'];
			}
		}
	}

	return $addresses;
}