Метод deleteByTemplateId

public

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

public function deleteByTemplateId(int $templateId): bool

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

Описание

Deletes the snapshot with its audience and tells whether this very call is the one that deleted it. Two concurrent stops of the same pilot both see the snapshot in place - reading it before the delete decides nothing - and only the database says which of them owned the row. Everything a stop does besides the delete belongs to that owner alone: keeping the scheme as a draft would otherwise be done twice, and the portal-wide answer about the pilots would be dropped for a change that never happened.

Параметры

1
Имя Тип По умолчанию Флаги
$templateId int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Repository/WorkflowTemplate/PilotVersionRepository.php
Расположение метода в файле
Строки 237–258

Исходный код

PHP