Метод loadStoredFlags
Сигнатура метода
private static function loadStoredFlags(int $formId, array $items): array
Возвращает:
array
Описание
Flags the form already keeps for the agreements the input names, by agreement. The rows of the section are removed and written anew, because an agreement of a form has no identity of its own beyond the agreement it points at. An attribute the input leaves out would therefore take the creation default of the column instead of keeping what is stored - a checked, optional agreement sent back as its identifier alone would come out unchecked and required. So the flags are read before the removal and stand in for what the input does not say. Nothing is read when every item of the input carries both of its flags.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$formId
|
int
|
—
|
—
|
$items
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/Section/AgreementSectionWriter.php