All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
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
resolveRecipients ( EmailMessage  $emailMessage)
protected
Parameters
EmailMessage$emailMessage

Definition at line 194 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 224 of file WorkflowEmailMessageProcessingHelper.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 21 2020 07:10:50