• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/compatible/compatible.php
  • Класс: BitrixSaleCompatibleOrderQueryLocation
  • Вызов: OrderQueryLocation::mapLocationRuntimeField
protected function mapLocationRuntimeField($field, $asFilter = false)
{
	if($asFilter)
	{
		$parsed = static::explodeFilterKey($field);

		if (isset($this->locationFieldMap[$parsed['alias']]))
		{
			return $parsed['modifier'].$parsed['operator'].'PROXY_'.$parsed['alias'];
		}
		else
		{
			return $field;
		}
	}
	else
	{
		if (isset($this->locationFieldMap[$field]))
		{
			return 'PROXY_'.$field;
		}
		else
		{
			return $field;
		}
	}
}