Метод collectInvalidConstantCodes
Сигнатура метода
public static function collectInvalidConstantCodes(array $documentType, string|array|null $inputBlocks, array $constantValues): array
Возвращает:
array
Описание
Instance-free field-definition validation of submitted constant values against setup blocks. Mirrors the field-type/format portion of validateConstants() but without the running-instance concerns (file uploader, access checks): it only decides which submitted values are invalid for their setup-block field definition. Used by the AI-agent upgrade pre-commit re-validation (P3.T2) so an invalid value re-shows the review master instead of being written and only caught by the post-apply best-effort fill(). Emptiness is not reported here — a missing required value is the caller's separate "still missing required" check. When a field type cannot be resolved without an instance (rare) the constant is left to that best-effort fill() rather than false-blocking an otherwise valid upgrade.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$documentType
|
array
|
—
|
—
|
$inputBlocks
|
string|array|null
|
—
|
—
|
$constantValues
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/install/activities/bitrix/setuptemplateactivity/setuptemplateactivity.php