Метод deleteRulesOfRemovedFields

private static

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

private static function deleteRulesOfRemovedFields(int $formId, array $removedCodes): Result

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

Описание

Removing a field removes the dependency rules referring to it, the way the legacy dependency filter did it by rebuilding itself from the stored field composition. The rules of the form are read in a stream and removed in sets: how many of them there are is decided by what the form stored earlier, not by the input at hand, so neither the selection nor the number of statements may follow it. FieldDependenceTable declares no delete handler, so nothing depends on the rows leaving one by one; a failed statement is raised by exception, the way DataManager::delete() raises it.

Параметры

2
Имя Тип По умолчанию Флаги
$formId int —
—
$removedCodes array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/Section/FieldSectionWriter.php
Расположение метода в файле
Строки 245–281

Исходный код

PHP