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

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 Wed Feb 20 07:10:52 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