Метод removeUnusedRows

private static

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

private static function removeUnusedRows(int $formId, array $unusedRowsByCode, array $writtenCodes, Result $result): Result

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

Описание

Removes the stored rows the input left unused and, for the fields that are gone from the form altogether, the dependency rules pointing at them. A row is left unused for one of two reasons, and they are told apart on purpose. A code the input no longer carries is a field removed from the form: its rules go with it. A code the input does carry can leave rows behind as well - the storage has no unique key over the code of a field, so a form may hold the same code twice, and the write keeps one row per name, the identity the contract stands on. Such a field is not removed from the form, and its rules stay.

Параметры

4
Имя Тип По умолчанию Флаги
$formId int —
—
$unusedRowsByCode array —
—
$writtenCodes array —
—
$result Result —
—

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

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

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

Исходный код

PHP