Метод bindToRecord
Сигнатура метода
public function bindToRecord(AddressPlacement $placement, array $addressFields, int $previousLocationAddressId, ?string $languageId = null): array
Возвращает:
array
Описание
The address the row is about to store: created, reused or copied, and linked to the record the row is stored on. The flat fields are written into the linked address, and only the ones that came: a field left out keeps whatever the address holds. The other direction - a link that arrived without a single flat field of its own - belongs to {@see self::exportFields()} and has to be settled before the caller decides whether the address is empty at all.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$placement
|
AddressPlacement
|
—
|
—
|
$addressFields
|
array
|
—
|
—
|
$previousLocationAddressId
|
int
|
—
|
—
|
$languageId
|
?string
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Integration/Location/AddressLinkGateway.php
Расположение метода в файле
Строки
92–142