Метод updateEmbedding
Сигнатура метода
public function updateEmbedding(int $formId, EmbeddingChangeSet $changeSet, DateTime $expectedModifiedTime): Result
Возвращает:
Result
Описание
Applies the change set of the embedding to the settings column of an existing CRM form. The settings of the variants live in one sub key of that column, so the write follows the same order as every other write of it: the version is reserved, the column is read, the sent nodes are merged into the stored tree and the result travels in one update of the row. The settings of the variants the change set says nothing about, the neighbouring sub keys and the keys this contract knows nothing about are stored back as they were read - and a block of the variants the column holds empty is stored back as the read answers it ({@see FormSettingsColumn::withDefaultViews()}), so that writing one setting takes none of the others away. The version is not optional here: the embedding is written by a method of its own, and a form has one rule of concurrent change rather than two.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$formId
|
int
|
—
|
—
|
$changeSet
|
EmbeddingChangeSet
|
—
|
—
|
$expectedModifiedTime
|
DateTime
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormWriteRepository.php