WorkflowEmailMessageProcessingHelper Class Reference

Public Member Functions

 __construct (EmailMessageForWorkflowForm $emailMessageForm, RedBeanModel $triggeredModel, User $triggeredByUser)
 process ()

Protected Member Functions

 resolveEmailTemplateSubjectForModelData (EmailTemplate $emailTemplate)
 resolveEmailTemplateTextContentForModelData (EmailTemplate $emailTemplate)
 resolveEmailTemplateHtmlContentForModelData (EmailTemplate $emailTemplate)
 resolveSender ()
 resolveSenderAsDefault (EmailMessageSender $sender)
 resolveRecipients (EmailMessage $emailMessage)
 resolveAttachments (EmailMessage $emailMessage, EmailTemplate $emailTemplate)

Protected Attributes

 $emailMessageForm
 $triggeredModel
 $triggeredByUser

Detailed Description

Helper class for processing email messages on a workflow that triggered.

Definition at line 40 of file WorkflowEmailMessageProcessingHelper.php.


Constructor & Destructor Documentation

__construct ( EmailMessageForWorkflowForm emailMessageForm,
RedBeanModel triggeredModel,
User triggeredByUser 
)
Parameters:
EmailMessageForWorkflowForm $emailMessageForm
RedBeanModel $triggeredModel
User $triggeredByUser

Definition at line 59 of file WorkflowEmailMessageProcessingHelper.php.


Member Function Documentation

process (  ) 
resolveEmailTemplateSubjectForModelData ( EmailTemplate emailTemplate  )  [protected]

If the content cannot be resolved for the merge tags, then use the original content

Parameters:
EmailTemplate $emailTemplate
Returns:
string

Definition at line 97 of file WorkflowEmailMessageProcessingHelper.php.

resolveEmailTemplateTextContentForModelData ( EmailTemplate emailTemplate  )  [protected]

If the content cannot be resolved for the merge tags, then use the original content

Parameters:
EmailTemplate $emailTemplate
Returns:
string

Definition at line 113 of file WorkflowEmailMessageProcessingHelper.php.

resolveEmailTemplateHtmlContentForModelData ( EmailTemplate emailTemplate  )  [protected]

If the content cannot be resolved for the merge tags, then use the original content

Parameters:
EmailTemplate $emailTemplate
Returns:
string

Definition at line 129 of file WorkflowEmailMessageProcessingHelper.php.

resolveSender (  )  [protected]
Returns:
EmailMessageSender
Exceptions:
NotSupportedException 

Definition at line 144 of file WorkflowEmailMessageProcessingHelper.php.

resolveRecipients ( EmailMessage emailMessage  )  [protected]
Parameters:
EmailMessage $emailMessage

Definition at line 192 of file WorkflowEmailMessageProcessingHelper.php.

resolveAttachments ( EmailMessage emailMessage,
EmailTemplate emailTemplate 
) [protected]

Add the files from EmailTemplate to the EmailMessage

Parameters:
EmailMessage $emailMessage
EmailTemplate $emailTemplate

Definition at line 208 of file WorkflowEmailMessageProcessingHelper.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jul 25 07:10:31 2017