Controller extends Controller uses Workflow
FinalYes
Table of Contents
Properties
- $usersLimit : mixed
Methods
- getInstance() : static
- Get an instance of the controller
- markCompletedTaskActivity() : void
- onCommentStatusChange() : void
- onCompleteTask() : void
- onCompleteWorkflow() : void
- onCreate() : void
- onCreateComment() : void
- onCreateTask() : void
- onCreateWorkflow() : void
- onDelegatedTask() : void
- onDeleteComment() : void
- onDeletedTask() : void
- onTaskStatusChange() : void
- onTerminateWorkflow() : void
- onViewedComment() : void
- onWorkflowStatusChange() : void
- prepareAuthorInfo() : mixed
- prepareAuthorInfoBulk() : mixed
- prepareHistoryDataModel() : array<string|int, mixed>
- Prepare data about an timeline entry. The data is used in interface to display timeline event
- sendPullEventOnAdd() : void
- Send pull event about timeline item creation
- sendPullEventOnDelete() : void
- Send pull event about timeline item deletion
- sendPullEventOnPin() : mixed
- sendPullEventOnUpdate() : void
- Send pull event about timeline item modification
Properties
$usersLimit
public
static mixed
$usersLimit
= 2
Methods
getInstance()
Get an instance of the controller
public
static getInstance() : static
Return values
staticmarkCompletedTaskActivity()
public
markCompletedTaskActivity(ChangedTaskStatus $changedTaskStatus) : void
Parameters
- $changedTaskStatus : ChangedTaskStatus
onCommentStatusChange()
public
onCommentStatusChange(CommentStatusChangedDto $request) : void
Parameters
- $request : CommentStatusChangedDto
onCompleteTask()
public
onCompleteTask(ChangedTaskStatus $changedTaskStatus) : void
Parameters
- $changedTaskStatus : ChangedTaskStatus
onCompleteWorkflow()
public
onCompleteWorkflow(ChangedWorkflowStatus $changedWorkflowStatus) : void
Parameters
- $changedWorkflowStatus : ChangedWorkflowStatus
onCreate()
public
onCreate(TimelineParams $data, int $typeCategoryId) : void
Parameters
- $data : TimelineParams
- $typeCategoryId : int
onCreateComment()
public
onCreateComment(ChangedCommentStatus $request) : void
Parameters
- $request : ChangedCommentStatus
onCreateTask()
public
onCreateTask(ChangedTaskStatus $changedTaskStatus) : void
Parameters
- $changedTaskStatus : ChangedTaskStatus
onCreateWorkflow()
public
onCreateWorkflow(ChangedWorkflowStatus $changedWorkflowStatus) : void
Parameters
- $changedWorkflowStatus : ChangedWorkflowStatus
onDelegatedTask()
public
onDelegatedTask(ChangedTaskStatus $changedTaskStatus) : void
Parameters
- $changedTaskStatus : ChangedTaskStatus
onDeleteComment()
public
onDeleteComment(ChangedCommentStatus $request) : void
Parameters
- $request : ChangedCommentStatus
onDeletedTask()
public
onDeletedTask(ChangedTaskStatus $changedTaskStatus) : void
Parameters
- $changedTaskStatus : ChangedTaskStatus
onTaskStatusChange()
public
onTaskStatusChange(TaskStatusChangedDto $request) : void
Parameters
- $request : TaskStatusChangedDto
onTerminateWorkflow()
public
onTerminateWorkflow(ChangedWorkflowStatus $changedWorkflowStatus) : void
Parameters
- $changedWorkflowStatus : ChangedWorkflowStatus
onViewedComment()
public
onViewedComment(ChangedCommentStatus $request) : void
Parameters
- $request : ChangedCommentStatus
onWorkflowStatusChange()
public
onWorkflowStatusChange(WorkflowStatusChangedDto $request) : void
Parameters
- $request : WorkflowStatusChangedDto
prepareAuthorInfo()
public
static prepareAuthorInfo(array<string|int, mixed> &$item) : mixed
Parameters
- $item : array<string|int, mixed>
prepareAuthorInfoBulk()
public
static prepareAuthorInfoBulk(array<string|int, mixed> &$items) : mixed
Parameters
- $items : array<string|int, mixed>
prepareHistoryDataModel()
Prepare data about an timeline entry. The data is used in interface to display timeline event
public
prepareHistoryDataModel(array<string|int, mixed> $data[, array<string|int, mixed> $options = null ]) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = null
-
= [ 'ENABLE_USER_INFO' => false, // prepare detailed author info (link, image, name). Disabled by default ];
Return values
array<string|int, mixed>sendPullEventOnAdd()
Send pull event about timeline item creation
public
sendPullEventOnAdd(ItemIdentifier $itemIdentifier, int $timelineEntryId[, int|null $userId = null ]) : void
Parameters
- $itemIdentifier : ItemIdentifier
- $timelineEntryId : int
- $userId : int|null = null
sendPullEventOnDelete()
Send pull event about timeline item deletion
public
sendPullEventOnDelete(ItemIdentifier $itemIdentifier, int $timelineEntryId[, int|null $userId = null ]) : void
Parameters
- $itemIdentifier : ItemIdentifier
- $timelineEntryId : int
- $userId : int|null = null
sendPullEventOnPin()
public
sendPullEventOnPin(ItemIdentifier $itemIdentifier, int $timelineEntryId, bool $isPinned[, int $userId = null ]) : mixed
Parameters
- $itemIdentifier : ItemIdentifier
- $timelineEntryId : int
- $isPinned : bool
- $userId : int = null
sendPullEventOnUpdate()
Send pull event about timeline item modification
public
sendPullEventOnUpdate(ItemIdentifier $itemIdentifier, int $timelineEntryId[, int|null $userId = null ]) : void
Parameters
- $itemIdentifier : ItemIdentifier
- $timelineEntryId : int
- $userId : int|null = null