Метод isUiContractAvailable

private

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

private function isUiContractAvailable(): bool

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

Описание

Two probes and not one, because the elements of the contract reached ui in separate commits and an update is assembled commit by commit: a ui carrying the value source without the placeholder constant, or the other way round, is a state this module can be installed next to. One element per commit is enough - what came along with the probed element cannot be missing while the element itself is there. Three of the five calls this module makes into the new ui API are never probed directly - MultiVariables::variablesSource(), allSelectedTitle() and unloadedVariableTitlePattern(). They rest on the invariant that an update takes a ui commit whole: each of them came to ui with the same addition as one of the two probed elements, so it is there whenever its probe passes. The probed names are constructor parameters holding the ui defaults: a class of ui that is loaded cannot be taken off the autoloader, so a test points the probes at names of its own instead.

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Integration/UI/AccessRights/V2/AccessRightsProvider.php
Расположение метода в файле
Строки 409–413

Исходный код

PHP