Метод normalizeConstantValueForApply
Сигнатура метода
private static function normalizeConstantValueForApply(string $constantType, bool $multiple, mixed $value): mixed
Возвращает:
mixed
Описание
Multiple user constant default is stored as an array of tokens (["user_4", "group_hr1", ...]), but the apply path (GetFieldInputValue -> User::extractValueMultiple -> CBPHelper::usersStringToArray) expects a delimited string; a raw sequential array without Index is collapsed to its first element. Join the tokens with ";" so every selected user/department survives. Only multiple user defaults are touched; other types and single values are returned unchanged.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$constantType
|
string
|
—
|
—
|
$multiple
|
bool
|
—
|
—
|
$value
|
mixed
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/install/activities/bitrix/setuptemplateactivity/setuptemplateactivity.php
Расположение метода в файле
Строки
1268–1276