Метод saveSchedule
Сигнатура метода
private function saveSchedule(int $templateId, TriggerSchedule $schedule): void
Возвращает:
void
Описание
Saves one schedule row and hands it to the creation barrier of the registry, inside the transaction the whole cycle of the template runs in. The two answers of the barrier are told apart here, because this runs on the save path of every template of the portal: a copy whose removal has begun and an identity another operation of the same agent holds are a refusal that is over on its own, so it leaves as a message a person can be shown and a save that may be repeated. Everything else - an unreadable registry, a payload the schema refuses - stays a failure of the storage and keeps its technical exception.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$schedule
|
TriggerSchedule
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/Trigger/Schedule/ScheduleSyncService.php