WorkflowServiceInterface
WorkflowServiceInterface.php
:
23
Interface
Methods¶
can()
¶
WorkflowServiceInterface.php
:
60
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $workflow | WorkflowMetadata | - | - |
| $transitionName | string | - | - |
Return values
bool
deleteContentLocks()
¶
WorkflowServiceInterface.php
:
163
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $contentId | int | - | - |
deleteLock()
¶
WorkflowServiceInterface.php
:
159
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionLock | VersionLock | - | - |
deleteUserLocks()
¶
WorkflowServiceInterface.php
:
161
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $userId | int | - | - |
getVersionLock()
¶
WorkflowServiceInterface.php
:
129
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |
Return values
VersionLock
Tags
getVersionLockByContentId()
¶
WorkflowServiceInterface.php
:
134
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $contentId | int | - | - |
| $versionNo | int | - | - |
Return values
VersionLock
Tags
isVersionLocked()
¶
WorkflowServiceInterface.php
:
139
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |
| $userId | int|null | null | - |
Return values
bool
loadAllWorkflowMetadata()
¶
WorkflowServiceInterface.php
:
93
Loads all workflow metadata stored in the database.
|
|
|
Loading all workflow metadata is highly discouraged, it leads to performance issues. Please use only if you understand the consequences.
Return values
array<string|int, WorkflowMetadata>
Tags
loadOngoingWorkflowMetadata()
¶
WorkflowServiceInterface.php
:
100
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $limit | int | 10 | - |
| $offset | int | 0 | - |
Return values
array<string|int, WorkflowMetadata>
loadOngoingWorkflowMetadataOriginatedByUser()
¶
WorkflowServiceInterface.php
:
108
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | UserReference | - | - |
| $name | string|null | null | - |
| $limit | int | 10 | - |
| $offset | int | 0 | - |
Return values
array<string|int, WorkflowMetadata>
loadWorkflowMetadataByStage()
¶
WorkflowServiceInterface.php
:
121
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $workflowName | string | - | - |
| $stageName | string | - | - |
Return values
array<string|int, WorkflowMetadata>
loadWorkflowMetadataForContent()
¶
WorkflowServiceInterface.php
:
33
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $name | string|null | null | - |
Return values
WorkflowMetadata
Tags
loadWorkflowMetadataForVersionInfo()
¶
WorkflowServiceInterface.php
:
41
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |
| $name | string|null | null | - |
Return values
WorkflowMetadata
Tags
loadWorkflowMetadataList()
¶
WorkflowServiceInterface.php
:
95
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | WorkflowMetadataQuery | - | - |
Return values
WorkflowMetadataList
loadWorkflowMetadataOriginatedByUser()
¶
WorkflowServiceInterface.php
:
78
Loads all workflow metadata started by $user.
|
|
|
Loading all workflow metadata is highly discouraged, it leads to performance issues. Please use only if you understand the consequences.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | UserReference | - | - |
| $name | string|null | null | - |
Return values
array<string|int, WorkflowMetadata>
Tags
lockVersion()
¶
WorkflowServiceInterface.php
:
147
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |
| $userId | int|null | null | - |
Tags
start()
¶
WorkflowServiceInterface.php
:
49
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $name | string|null | null | - |
Return values
WorkflowMetadata
Tags
unlockVersion()
¶
WorkflowServiceInterface.php
:
157
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |