Метод shouldShowWarning
Сигнатура метода
public function shouldShowWarning(string $systemCode): bool
Возвращает:
bool
Описание
The checks run from the cheapest to the most expensive, and the right to show is spent last, only once everything else has lined up: a user who has already spent it never pays for the search for running agents, and a template without running agents never burns the right. The early "already spent" check is an optimization, not the one-shot guarantee - the guarantee comes from the atomic claim on the last line.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$systemCode
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/ExistingRunsWarningPolicy.php
Расположение метода в файле
Строки
35–53