WorkflowActionProcessingModelAdapter Class Reference

Public Member Functions

 __construct (RedBeanModel $model, User $triggeredByUser, RedBeanModel $triggeredModel=null)
 getModel ()
 getTriggeredModel ()
 getTriggeredByUser ()

Protected Attributes

 $model
 $triggeredByUser
 $triggeredModel

Detailed Description

Helper class using during workflow action processing. When processing an action, each action has a collection of attributes to set values on against the model. Sometimes the triggered model is different than the model being updated and is needed for reference. This adapter will also provide the information regarding the triggered user as well since this can be different than Yii::app()->user->userModel, since actions need to be processed with elevated privileges.

Definition at line 44 of file WorkflowActionProcessingModelAdapter.php.


Constructor & Destructor Documentation

__construct ( RedBeanModel model,
User triggeredByUser,
RedBeanModel triggeredModel = null 
)
Parameters:
RedBeanModel $model
User $triggeredByUser
RedBeanModel $triggeredModel

Definition at line 66 of file WorkflowActionProcessingModelAdapter.php.


Member Function Documentation

getModel (  ) 
Returns:
RedBeanModel

Definition at line 83 of file WorkflowActionProcessingModelAdapter.php.

getTriggeredModel (  ) 
Returns:
RedBeanModel

Definition at line 91 of file WorkflowActionProcessingModelAdapter.php.

getTriggeredByUser (  ) 
Returns:
User

Definition at line 99 of file WorkflowActionProcessingModelAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Aug 18 07:10:33 2017