Метод canPersist

private

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

private function canPersist(int $templateId, array $documentType, int $userId, bool $publish): bool

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

Описание

Persist gate for the live-save / draft-save / constants paths. An existing template is writable only through its own document type; on top of that Nodes templates are governed by the template ACL and split into publish (activation of the live row) and edit (draft), while every other type and a new template stay on the legacy document-type CreateWorkflow gate.

Параметры

4
Имя Тип По умолчанию Флаги
$templateId int —
—
$documentType array —
—
$userId int —
—
$publish bool —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Api/Service/WorkflowTemplateService.php
Расположение метода в файле
Строки 88–91

Исходный код

PHP