Метод register
Сигнатура метода
public static function register(): void
Возвращает:
void
Описание
Puts the agent on the schedule of the portal, and does nothing if the record is already there. Used by the transitional stepper and by the installation of the module; the updater of an open update asks isRegistered() and adds the agent through the Migration API instead. The record is deliberately not periodic: for a non-periodic record \CAgent counts the next run from the end of the step, and the pace of the agent relies on that, while a periodic one counts it from the previous run. Two ways of delivery can reach the schedule between the lookup and the addition, and an existing record is the outcome asked for, so the addition is told not to report it as an error.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/agent/timeline/bindcreatedbackfillagent.php