Метод add

public

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

public function add(int $userId, WebFormChangeSet $changeSet): int

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

Описание

Creates a CRM form out of the change set and returns its id. The form is created in the state it is meant to work in: a creation saying nothing about the activity makes a working form. A creation that ends up with a working form is weighed against the limit of the portal before anything is written, so a refusal of the limit leaves no form behind; a creation making a form that does not work is never counted.

Параметры

2
Имя Тип По умолчанию Флаги
$userId int —
—
$changeSet WebFormChangeSet —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/WebForm/FormWriter.php
Расположение метода в файле
Строки 174–208

Исходный код

PHP