WorkflowServiceInterface
WorkflowServiceInterface.php
:
19
Methods¶
can() ¶
WorkflowServiceInterface.php
:
45
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$workflow | WorkflowMetadata | - | - |
$transitionName | string | - | - |
Return values
bool
deleteContentLocks() ¶
WorkflowServiceInterface.php
:
130
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$contentId | int | - | - |
deleteLock() ¶
WorkflowServiceInterface.php
:
126
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$versionLock | VersionLock | - | - |
deleteUserLocks() ¶
WorkflowServiceInterface.php
:
128
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userId | int | - | - |
getVersionLock() ¶
WorkflowServiceInterface.php
:
105
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$versionInfo | VersionInfo | - | - |
Return values
VersionLock
Tags
getVersionLockByContentId() ¶
WorkflowServiceInterface.php
:
110
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$contentId | int | - | - |
$versionNo | int | - | - |
Return values
VersionLock
Tags
isVersionLocked() ¶
WorkflowServiceInterface.php
:
112
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$versionInfo | VersionInfo | - | - |
$userId | int|null | null | - |
Return values
bool
loadAllWorkflowMetadata() ¶
WorkflowServiceInterface.php
:
72
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
:
79
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$limit | int | 10 | - |
$offset | int | 0 | - |
Return values
array<string|int, WorkflowMetadata>
loadOngoingWorkflowMetadataOriginatedByUser() ¶
WorkflowServiceInterface.php
:
87
|
|
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
:
100
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$workflowName | string | - | - |
$stageName | string | - | - |
Return values
array<string|int, WorkflowMetadata>
loadWorkflowMetadataForContent() ¶
WorkflowServiceInterface.php
:
29
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Content | - | - |
$name | string|null | null | - |
Return values
WorkflowMetadata
Tags
loadWorkflowMetadataList() ¶
WorkflowServiceInterface.php
:
74
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | WorkflowMetadataQuery | - | - |
Return values
WorkflowMetadataList
loadWorkflowMetadataOriginatedByUser() ¶
WorkflowServiceInterface.php
:
60
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
:
117
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$versionInfo | VersionInfo | - | - |
$userId | int | null | - |
Tags
start() ¶
WorkflowServiceInterface.php
:
37
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Content | - | - |
$name | string|null | null | - |
Return values
WorkflowMetadata
unlockVersion() ¶
WorkflowServiceInterface.php
:
124
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$versionInfo | VersionInfo | - | - |