Метод recordCreation
Сигнатура метода
public function recordCreation(int $templateId, int $userId): bool
Возвращает:
bool
Описание
Marks the birth of a template in its journal. A template created while the history was already on has no configuration older than the journal itself, so its history stays empty until the first publication instead of being backfilled from the live row. A template outside the history gets no mark at all: it may still be converted into a node one later, and a birth record would then pass its pre-feature configuration off as born with the journal.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$userId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Api/Service/WorkflowTemplateHistoryService.php
Расположение метода в файле
Строки
141–164