Метод publishToEveryone
Сигнатура метода
public function publishToEveryone(int $templateId, int $actorId, int $expectedPilotId, string $expectedRevision): Result
Возвращает:
Result
Описание
Makes the pilot version the common one by writing its snapshot to the live template row. That write is the last thing the operation does and the only thing it writes: its side effects are irreversible - the sync of the constants files deletes files physically, with no rollback. The pilot is stopped by the cascade over the write of the live scheme, not here: two independent paths of deleting a snapshot would mean two different sets of side effects.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$actorId
|
int
|
—
|
—
|
$expectedPilotId
|
int
|
—
|
—
|
$expectedRevision
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Public/Service/WorkflowTemplate/PilotPublicationService.php
Расположение метода в файле
Строки
427–515