Метод exportGivenAddress

public

Сигнатура метода

public function exportGivenAddress(mixed $locationAddress): array

Возвращает: array

Описание

The flat fields of an address of the location module the caller brought as an object of its own, together with the identifier the row has to store. The old input of a crm address carries its geodata either as an identifier or as a whole address of the location module built by the caller - from the json of the autocomplete, from a converted requisite, from a business process. A row stores an identifier and nothing else, so the object itself is kept until the write knows which record it belongs to, and {@see self::bindToRecord()} takes it from here instead of loading an address by an identifier. Nothing is stored at this point, and that is the whole reason the object is kept rather than saved: an object the caller loaded from an address of another record and changed would have its changes written into that very address, and only afterwards would the copying below notice the foreign link and leave the original behind - already changed. Copying comes before storing, exactly as it did on the old write path, and an address that has no identifier yet gets one there too. The fields of the object are the answer, and the caller lets them win over the flat fields it was given beside the object - that is how the old write path settled the conflict of the two. The link of the row is not written here either: which record the row lives on is not decided yet.

Параметры

1
Имя Тип По умолчанию Флаги
$locationAddress mixed —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Integration/Location/AddressLinkGateway.php
Расположение метода в файле
Строки 197–210

Исходный код

PHP