DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm Class Reference

Inheritance diagram for DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm:
WorkflowEmailMessageRecipientForm ConfigurableMetadataModel

Public Member Functions

 rules ()
 validateRelationFilter ()
 getRelationValuesAndLabels ()
 makeRecipients (RedBeanModel $model, User $triggeredByUser)
 resolveRecipients (RedBeanModel $model)

Static Public Member Functions

static getTypeLabel ()
static resolveRecipientsAsUniquePeople ($existingRecipients, $newRecipients)

Data Fields

const RELATION_FILTER_ALL = 'RelationFilterAll'
 $relation
 $relationFilter = self::RELATION_FILTER_ALL

Detailed Description

Form to work with dynamic triggered model relation users for an email message recipient

Definition at line 40 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.


Member Function Documentation

static getTypeLabel (  )  [static]
static resolveRecipientsAsUniquePeople ( existingRecipients,
newRecipients 
) [static]

Public for testing only

Parameters:
array $existingRecipients
array $newRecipients
Returns:
array
Exceptions:
NotSupportedException if the $existingRecipients contains non-unique people

Definition at line 77 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.

rules (  ) 

Override to add relation attribute

Reimplemented from WorkflowEmailMessageRecipientForm.

Definition at line 116 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.

validateRelationFilter (  ) 
getRelationValuesAndLabels (  ) 
makeRecipients ( RedBeanModel model,
User triggeredByUser 
)
Parameters:
RedBeanModel $model
User $triggeredByUser
Returns:
array
Exceptions:
NotSupportedException 

Reimplemented from WorkflowEmailMessageRecipientForm.

Definition at line 160 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.

resolveRecipients ( RedBeanModel model  ) 
Parameters:
RedBeanModel $model
Returns:
array

Definition at line 210 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.


Field Documentation

const RELATION_FILTER_ALL = 'RelationFilterAll'

When sending email messages on related models, if there are MANY related models RELATION_FILTER_ALL means the action will be performed on all related models

Definition at line 46 of file DynamicTriggeredModelRelationWorkflowEmailMessageRecipientForm.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Oct 16 07:10:24 2017