Метод publishCommonVersion
Сигнатура метода
public function publishCommonVersion(int $templateId, array $fields, int $userId): RecordPublicationResponse
Возвращает:
RecordPublicationResponse
Описание
Writes a pilot version as the common one without repeating the request-level access checks. The caller owns the transaction, including the row lock that protects the pilot identity. The common template write and its history record therefore commit or roll back together with the pilot cascade.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$fields
|
array
|
—
|
—
|
$userId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Api/Service/WorkflowTemplateService.php
Расположение метода в файле
Строки
635–638