MergeTagsContentResolverUtil Class Reference

Static Public Member Functions

static resolveContentsForGlobalFooterAndMergeTagsAndTracking (&$textContent, &$htmlContent, RedBeanModel $attachedModel=null, $emailTemplateType=EmailTemplate::TYPE_CONTACT, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG, $language=null, array &$invalidTags=array(), $marketingListId=null, $preview=false, $addGlobalFooterMergeTags=self::ADD_GLOBAL_FOOTER_MERGE_TAGS_IF_MISSING, $enableTracking=true, $modelId=null, $modelType=null, $personId=null)
static resolveContentsForGlobalFooterMergeTags (&$textContent, &$htmlContent, $addGlobalFooterMergeTags=self::ADD_GLOBAL_FOOTER_MERGE_TAGS_IF_MISSING)
static removeGlobalFooterMergeTagsFromContents (&$textContent, &$htmlContent)
static resolveContentsForTracking (&$textContent, &$htmlContent, $enableTracking=true, $modelId=null, $modelType=null, $personId=null)
static resolveContentsForMergeTags (&$textContent, &$htmlContent, RedBeanModel $attachedModel=null, $emailTemplateType=EmailTemplate::TYPE_CONTACT, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG, $language=null, array &$invalidTags=array(), $marketingListId=null, $preview=false, $modelId=null, $modelType=null, $personId=null)
static resolveContentForMergeTagsWithExceptionOnFailure (&$content, RedBeanModel $attachedModel=null, $emailTemplateType=EmailTemplate::TYPE_CONTACT, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG, $language=null, array &$invalidTags=array(), $marketingListId=null, $preview=false, $modelId=null, $modelType=null, $personId=null, $isHtmlContent=false)
static resolveContentForMergeTags (&$content, RedBeanModel $attachedModel=null, $emailTemplateType=EmailTemplate::TYPE_CONTACT, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG, $language=null, array &$invalidTags=array(), $marketingListId=null, $preview=false, $modelId=null, $modelType=null, $personId=null, $isHtmlContent=false)

Data Fields

const ADD_GLOBAL_FOOTER_MERGE_TAGS_IF_MISSING = 1
const REMOVE_GLOBAL_FOOTER_MERGE_TAGS_IF_PRESENT = -1

Detailed Description

Definition at line 37 of file MergeTagsContentResolverUtil.php.


Member Function Documentation

static resolveContentsForGlobalFooterAndMergeTagsAndTracking ( &$  textContent,
&$  htmlContent,
RedBeanModel attachedModel = null,
emailTemplateType = EmailTemplate::TYPE_CONTACT,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG,
language = null,
array &$  invalidTags = array(),
marketingListId = null,
preview = false,
addGlobalFooterMergeTags = self::ADD_GLOBAL_FOOTER_MERGE_TAGS_IF_MISSING,
enableTracking = true,
modelId = null,
modelType = null,
personId = null 
) [static]

Resolve Content for Global Footers, MergeTags and Tracking

Parameters:
$textContent 
$htmlContent 
RedBeanModel $attachedModel
int $emailTemplateType
int $errorOnFirstMissing
null $language
array $invalidTags
null $marketingListId
bool $preview
int $addGlobalFooterMergeTags
bool $enableTracking
null $modelId
null $modelType
null $personId

Definition at line 60 of file MergeTagsContentResolverUtil.php.

static resolveContentsForGlobalFooterMergeTags ( &$  textContent,
&$  htmlContent,
addGlobalFooterMergeTags = self::ADD_GLOBAL_FOOTER_MERGE_TAGS_IF_MISSING 
) [static]

Resolve content for global footer merge tags

Parameters:
$textContent 
$htmlContent 
int $addGlobalFooterMergeTags

Definition at line 95 of file MergeTagsContentResolverUtil.php.

static removeGlobalFooterMergeTagsFromContents ( &$  textContent,
&$  htmlContent 
) [static]

Remove global merge tags from contents

Parameters:
$textContent 
$htmlContent 

Definition at line 113 of file MergeTagsContentResolverUtil.php.

static resolveContentsForMergeTags ( &$  textContent,
&$  htmlContent,
RedBeanModel attachedModel = null,
emailTemplateType = EmailTemplate::TYPE_CONTACT,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG,
language = null,
array &$  invalidTags = array(),
marketingListId = null,
preview = false,
modelId = null,
modelType = null,
personId = null 
) [static]

Resolve contents for merge tags

Parameters:
$textContent 
$htmlContent 
RedBeanModel $attachedModel
int $emailTemplateType
int $errorOnFirstMissing
null $language
array $invalidTags
null $marketingListId
bool $preview
null $modelId
null $modelType
null $personId
Exceptions:
NotSupportedException 

Definition at line 145 of file MergeTagsContentResolverUtil.php.

static resolveContentForMergeTagsWithExceptionOnFailure ( &$  content,
RedBeanModel attachedModel = null,
emailTemplateType = EmailTemplate::TYPE_CONTACT,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG,
language = null,
array &$  invalidTags = array(),
marketingListId = null,
preview = false,
modelId = null,
modelType = null,
personId = null,
isHtmlContent = false 
) [static]

Resolve content for merge tag and throw exception if resolution fails

Parameters:
$content 
RedBeanModel $attachedModel
int $emailTemplateType
int $errorOnFirstMissing
null $language
array $invalidTags
null $marketingListId
bool $preview
null $modelId
null $modelType
null $personId
bool $isHtmlContent
Exceptions:
NotSupportedException 

Definition at line 178 of file MergeTagsContentResolverUtil.php.

static resolveContentForMergeTags ( &$  content,
RedBeanModel attachedModel = null,
emailTemplateType = EmailTemplate::TYPE_CONTACT,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::ERROR_ON_FIRST_INVALID_TAG,
language = null,
array &$  invalidTags = array(),
marketingListId = null,
preview = false,
modelId = null,
modelType = null,
personId = null,
isHtmlContent = false 
) [static]

Resolve content for merge tags and return resolution result

Parameters:
$content 
RedBeanModel $attachedModel
int $emailTemplateType
int $errorOnFirstMissing
null $language
array $invalidTags
null $marketingListId
bool $preview
null $modelId
null $modelType
null $personId
bool $isHtmlContent
Returns:
bool
Exceptions:
NotSupportedException 

Definition at line 211 of file MergeTagsContentResolverUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 15 07:11:01 2019