VTWorkflowManager
in package
Table of Contents
- $BLOCK_EDIT : int
- Block edit.
- $MANUAL : int
- Manual.
- $ON_DELETE : int
- On delete.
- $ON_EVERY_SAVE : int
- On every save.
- $ON_FIRST_SAVE : int
- On first save.
- $ON_MODIFY : int
- On modify.
- $ON_RELATED : int
- On related.
- $ON_SCHEDULE : int
- On schedule.
- $ONCE : int
- Once.
- $TRIGGER : int
- Trigger.
- delete() : mixed
- Delete workflow.
- getScheduledWorkflows() : Workflow
- Function returns scheduled workflows.
- getWorkflows() : array<string|int, Workflow>
- Return workflows.
- getWorkflowsForModule() : array<string|int, Workflow>
- Return workflows for module.
- newWorkflow() : Workflow
- Create new workflow in module.
- retrieve() : A
- Retrieve a workflow from the database.
- save() : mixed
- Save workflow data.
- updateNexTriggerTime() : mixed
- Update the Next trigger timestamp for a workflow.
- getWorkflowInstance() : workflowClass
- Return workflow instance.
- getWorkflowsForResult() : array<string|int, Workflow>
- Return workflows for provided rows.
Properties
$BLOCK_EDIT
Block edit.
public
static int
$BLOCK_EDIT
= 9
$MANUAL
Manual.
public
static int
$MANUAL
= 7
$ON_DELETE
On delete.
public
static int
$ON_DELETE
= 5
$ON_EVERY_SAVE
On every save.
public
static int
$ON_EVERY_SAVE
= 3
$ON_FIRST_SAVE
On first save.
public
static int
$ON_FIRST_SAVE
= 1
$ON_MODIFY
On modify.
public
static int
$ON_MODIFY
= 4
$ON_RELATED
On related.
public
static int
$ON_RELATED
= 10
$ON_SCHEDULE
On schedule.
public
static int
$ON_SCHEDULE
= 6
$ONCE
Once.
public
static int
$ONCE
= 2
$TRIGGER
Trigger.
public
static int
$TRIGGER
= 8
Methods
delete()
Delete workflow.
public
delete(int $id) : mixed
Parameters
- $id : int
Return values
mixed —getScheduledWorkflows()
Function returns scheduled workflows.
public
getScheduledWorkflows([object $referenceTime = false ]) : Workflow
Parameters
- $referenceTime : object = false
-
DateTime
Return values
Workflow —getWorkflows()
Return workflows.
public
getWorkflows() : array<string|int, Workflow>
Return values
array<string|int, Workflow> —getWorkflowsForModule()
Return workflows for module.
public
getWorkflowsForModule(string $moduleName[, string $executionCondition = false ]) : array<string|int, Workflow>
Parameters
- $moduleName : string
- $executionCondition : string = false
Return values
array<string|int, Workflow> —newWorkflow()
Create new workflow in module.
public
newWorkflow(string $moduleName) : Workflow
Parameters
- $moduleName : string
Return values
Workflow —retrieve()
Retrieve a workflow from the database.
public
retrieve(mixed $id) : A
Returns null if the workflow doesn't exist.
Parameters
- $id : mixed
Return values
A —workflow object
save()
Save workflow data.
public
save(Workflow $workflow) : mixed
Parameters
- $workflow : Workflow
Return values
mixed —updateNexTriggerTime()
Update the Next trigger timestamp for a workflow.
public
updateNexTriggerTime(Workflow $workflow) : mixed
Parameters
- $workflow : Workflow
Return values
mixed —getWorkflowInstance()
Return workflow instance.
protected
getWorkflowInstance([string $type = 'basic' ]) : workflowClass
Parameters
- $type : string = 'basic'
Return values
workflowClass —getWorkflowsForResult()
Return workflows for provided rows.
protected
getWorkflowsForResult(array<string|int, mixed> $rows) : array<string|int, Workflow>
Parameters
- $rows : array<string|int, mixed>