Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 146 of file WorkflowEmailMessageProcessingHelper.php.

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:
 All Data Structures Functions Variables
Generated on Wed Mar 20 07:11:07 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8