Метод validate
Сигнатура метода
private function validate(EmbeddingChangeSet $changeSet): void
Возвращает:
void
Описание
Refuses every setting whose value is outside the values the portal publishes for it or longer than the setting is bounded by, and refuses them all at once: a caller learns about every violation instead of fixing one per request. The values are asked of the same source the read publishes beside the settings, so a client is never refused a value it was offered. A setting being cleared is checked against neither of the two - naming no value is a state of the form, not a value outside the list. A published list that is empty is the dictionary of the portal carrying nothing, and nothing is what it can refuse. A setting the dictionary publishes no values for is bounded in length instead, and the length is the bound of the setting alone: the settings of every variant share one serialized column with the rest of the settings of the form, and a value bounded by nothing is a way to lose all of them at once. A colour is checked against the form it is written in on top of that length. The published package composes the hover rule of the button as CSS text and appends the stored value to it as it is, so a colour of another form is not a colour that fails to apply: it is a rule of its own on every page the form is placed on.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$changeSet
|
EmbeddingChangeSet
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/WebForm/EmbeddingWriter.php