EmailTemplateSerializedDataToHtmlUtil Class Reference

Static Public Member Functions

static resolveHtmlByEmailTemplateId ($emailTemplateId, $renderForCanvas=false, OwnedSecurableItem $attachedMergeTagModel=null)
static resolveHtmlByEmailTemplateModel (EmailTemplate $emailTemplate, $renderForCanvas=false, OwnedSecurableItem $attachedMergeTagModel=null)
static resolveHtmlBySerializedData ($serializedData, $renderForCanvas=false, OwnedSecurableItem $attachedMergeTagModel=null, $type=null, $language=null)
static resolveHtmlByUnserializedData (array $unserializedData, $renderForCanvas=false, OwnedSecurableItem $attachedMergeTagModel=null, $type=null, $language=null)
static resolveMergeTagsByModel ($html, OwnedSecurableItem $attachedMergeTagModel, $type=null, $language=null)

Detailed Description

Class EmailTemplateSerializedDataToHtmlUtil Utility class to resolve serializedData of an email template into html with option to also resolve merge tags at the same time.

Definition at line 42 of file EmailTemplateSerializedDataToHtmlUtil.php.


Member Function Documentation

static resolveHtmlByEmailTemplateId ( emailTemplateId,
renderForCanvas = false,
OwnedSecurableItem attachedMergeTagModel = null 
) [static]

Resolve html for a builder template provided its id

Parameters:
$emailTemplateId 
bool $renderForCanvas
OwnedSecurableItem $attachedMergeTagModel
Returns:
bool|null|string

Definition at line 51 of file EmailTemplateSerializedDataToHtmlUtil.php.

static resolveHtmlByEmailTemplateModel ( EmailTemplate emailTemplate,
renderForCanvas = false,
OwnedSecurableItem attachedMergeTagModel = null 
) [static]

Resolve html for a builder template provided the model itself.

Parameters:
EmailTemplate $emailTemplate
bool $renderForCanvas
OwnedSecurableItem $attachedMergeTagModel
Returns:
bool|null|string

Definition at line 65 of file EmailTemplateSerializedDataToHtmlUtil.php.

static resolveHtmlBySerializedData ( serializedData,
renderForCanvas = false,
OwnedSecurableItem attachedMergeTagModel = null,
type = null,
language = null 
) [static]

Resolve html for provided serialized data

Parameters:
$serializedData 
bool $renderForCanvas
OwnedSecurableItem $attachedMergeTagModel
null $type
null $language
Returns:
bool|null|string

Definition at line 82 of file EmailTemplateSerializedDataToHtmlUtil.php.

static resolveHtmlByUnserializedData ( array $  unserializedData,
renderForCanvas = false,
OwnedSecurableItem attachedMergeTagModel = null,
type = null,
language = null 
) [static]

Resolve html for provided unserialized data array

Parameters:
array $unserializedData
bool $renderForCanvas
OwnedSecurableItem $attachedMergeTagModel
null $type
null $language
Returns:
bool|null|string

Definition at line 102 of file EmailTemplateSerializedDataToHtmlUtil.php.

static resolveMergeTagsByModel ( html,
OwnedSecurableItem attachedMergeTagModel,
type = null,
language = null 
) [static]

Resolve merge tags present in html

Parameters:
$html 
OwnedSecurableItem $attachedMergeTagModel
null $type
null $language
Returns:
bool|string
Exceptions:
FailedToResolveMergeTagsException 

Definition at line 141 of file EmailTemplateSerializedDataToHtmlUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Mar 22 07:10:25 2017