Метод hasStorage

private

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

private function hasStorage(): bool

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

Описание

Whether the storage exists at all. In the cloud the files of a module and its database are updated at separate times, so this code can run on a portal the table has not been created on yet. A read and a cleanup then answer the way an empty storage would - nothing is forbidden, nothing is left to drop - because neither of them is what its caller came for: the policy must not be able to break the rendering of a CRM card or the deletion of an entity type. A write is left unguarded on purpose - a policy that cannot be stored has to be reported to the one who set it rather than answered with success.

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/Ai/FieldFillExclusionRepository.php
Расположение метода в файле
Строки 144–147

Исходный код

PHP