Метод resolveConstantDefault

private static

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

private static function resolveConstantDefault(string $constantType, bool $multiple, mixed $storedValue, string|array $wizardDefault): string|array

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

Описание

Value the form is filled with: the value stored in the template constant wins, the default of the setup wizard is the fallback for a constant that was never filled. A single bool reaches the form canonicalized: the storage may hold any synonym the server recognises, so both the positive and the negative ones become Y or N and keep their meaning against the wizard default. Only a value outside the known synonyms means nothing to a bool and counts as never filled. A native bool is canonicalized whatever the multiplicity — for a multiple value element by element — so a stored native value keeps its meaning instead of being read as an empty one. Otherwise multiplicity decides which path is taken, not the runtime form of the stored value: the synonyms of a multiple bool stay as they are.

Параметры

4
Имя Тип По умолчанию Флаги
$constantType string —
—
$multiple bool —
—
$storedValue mixed —
—
$wizardDefault string|array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/install/activities/bitrix/setuptemplateactivity/setuptemplateactivity.php
Расположение метода в файле
Строки 1014–1066

Исходный код

PHP