DataToWorkflowUtil Class Reference

Static Public Member Functions

static resolveWorkflowByWizardPostData (Workflow $workflow, $postData, $wizardFormClassName)
static resolveTriggers ($data, Workflow $workflow)
static sanitizeTriggersData ($moduleClassName, $workflowType, array $triggersData)
static resolveActions ($data, Workflow $workflow)
static sanitizeActionData ($modelClassName, $actionData, $workflowType)
static resolveEmailMessages ($data, Workflow $workflow)
static resolveTimeTrigger ($data, Workflow $workflow)

Static Protected Member Functions

static sanitizeTriggerData ($moduleClassName, $workflowType, $triggerData)

Detailed Description

Class to work with POST data and adapting that into a Workflow object

Definition at line 40 of file DataToWorkflowUtil.php.


Member Function Documentation

static resolveWorkflowByWizardPostData ( Workflow workflow,
postData,
wizardFormClassName 
) [static]
Parameters:
Workflow $workflow
array $postData
string$wizardFormClassName 

Definition at line 47 of file DataToWorkflowUtil.php.

static resolveTriggers ( data,
Workflow workflow 
) [static]
Parameters:
array $data
Workflow $workflow

Definition at line 90 of file DataToWorkflowUtil.php.

static sanitizeTriggersData ( moduleClassName,
workflowType,
array $  triggersData 
) [static]
Parameters:
string $moduleClassName
string $workflowType
array $triggersData
Returns:
array

Definition at line 118 of file DataToWorkflowUtil.php.

static resolveActions ( data,
Workflow workflow 
) [static]

Public for testing purposes

Parameters:
array $data
Workflow $workflow

Definition at line 135 of file DataToWorkflowUtil.php.

static sanitizeActionData ( modelClassName,
actionData,
workflowType 
) [static]
Parameters:
string $modelClassName
array $actionData
string $workflowType
Returns:
array

Definition at line 164 of file DataToWorkflowUtil.php.

static resolveEmailMessages ( data,
Workflow workflow 
) [static]

Public for testing purposes

Parameters:
array $data
Workflow $workflow

Definition at line 200 of file DataToWorkflowUtil.php.

static resolveTimeTrigger ( data,
Workflow workflow 
) [static]

No need to sanitize for Date and DateTime since those attributes utilize integers for time-based triggers

Parameters:
array $data
Workflow $workflow

Definition at line 226 of file DataToWorkflowUtil.php.

static sanitizeTriggerData ( moduleClassName,
workflowType,
triggerData 
) [static, protected]
Parameters:
string $moduleClassName
string $workflowType
array $triggerData
Returns:
mixed

Definition at line 253 of file DataToWorkflowUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Nov 23 07:10:24 2017