Метод setActive

public

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

public function setActive(int $userId, int $formId, bool $isActive): WebForm

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

Описание

Brings an existing CRM form into the asked-for state and answers with the state it is in and the version acting after the call. The expected version is not taken: this is a switch of state rather than a change of the contents of the form, it is idempotent, and demanding a version would make every switch from a list read the form first.

Параметры

3
Имя Тип По умолчанию Флаги
$userId int —
—
$formId int —
—
$isActive bool —
—

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

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

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

Исходный код

PHP