Метод collectInvalidConstantValues

public

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

public function collectInvalidConstantValues(int $templateId, array $constantValues): array

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

Описание

Codes of submitted values that fail field-type validation against a template's setup blocks. Reads the template's SetupTemplateActivity blocks and its complex document type, then delegates the instance-free field-definition validation to CBPSetupTemplateActivity, so the AI-agent upgrade can reject invalid submitted values before it commits (never writing them, unlike the post-apply best-effort fill()). Empty values are not reported here - a missing required value is the caller's separate "still missing required" check. Returns an empty array when the template has no setup activity or all submitted values are valid.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/SetupTemplate/SetupTemplateService.php
Расположение метода в файле
Строки 122–160

Исходный код

PHP