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

EmailMessageActivityUtil Class Reference

Inheritance diagram for EmailMessageActivityUtil:
AutoresponderItemActivityUtil CampaignItemActivityUtil

Static Public Member Functions

static resolveContentGlobalFooter (&$content, $personId, $marketingListId, $modelId, $modelType, $isHtmlContent)
static resolveQueryStringArrayForHash ($hash, $validateQueryStringArray=true, $validateForTracking=true)
static resolveQueryStringFromUrlAndCreateOrUpdateActivity ()
static resolveContentForTracking ($tracking, &$content, $modelId, $modelType, $personId, $isHtmlContent)
static createOrUpdateActivity ($queryStringArray)
static resolveUnsubscribeAndManageSubscriptionPlaceholders (&$content, $personId, $marketingListId, $modelId, $modelType, $isHtmlContent, $replaceExisting=false, $preview=false)
static resolveHashForUnsubscribeAndManageSubscriptionsUrls ($personId, $marketingListId, $modelId, $modelType, $createNewActivity=true)
static resolveModelClassNameByModelType ($modelType)

Data Fields

const VALID_HASH_PATTERN = '~^[A-Z0-9\+=/ ]+~i'

Static Protected Member Functions

static processActivityFromQueryStringArray ($queryStringArray)
static resolveExistingActivity ($queryStringArray)
static createNewActivity ($queryStringArray)
static resolveContentForEmailOpenTracking (&$content, $isHtmlContent=false)
static resolveContentForLinkClickTracking (&$content, $isHtmlContent=false)
static resolvePlainLinksForClickTracking (&$content, $isHtmlContent)
static resolveHrefLinksForClickTracking (&$content, $isHtmlContent)
static resolveTrackingUrlForMatchedPlainLinkArray ($matches)
static resolveTrackingUrlForMatchedPlainLinkArrayWithHtmlContent ($matches)
static resolveTrackingUrlForMatchedHrefLinkArray ($matches)
static resolveTrackingUrlForLink ($link)
static resolveAbsoluteTrackingUrlByHash ($hash)
static resolveBaseTrackingUrl ()
static resolveHashForQueryStringArray ($queryStringArray)
static resolveBaseQueryStringArray ($modelId, $modelType, $personId)
static getBaseLinkRegex ()
static getPlainLinkRegex ($isHtmlContent)
static getHrefLinkRegex ()
static resolveTrackingTypeByQueryStringArray ($queryStringArray)
static resolveContentForUnsubscribeAndManageSubscriptionsUrls (&$content, $personId, $marketingListId, $modelId, $modelType, $isHtmlContent)
static isFooterAlreadyPresent ($content)
static resolvePlaceholderUrlsForHtmlContent (&$unsubscribeUrl, &$manageSubscriptionsUrl, $isHtmlContent)
static resolveUnsubscribeUrlForHtmlContent (&$unsubscribeUrl, $isHtmlContent)
static resolveManageSubscriptionsUrlForHtmlContent (&$manageSubscriptionsUrl, $isHtmlContent)
static resolveUnsubscribeAndManageSubscriptionPlaceholdersToUrls (&$content, $unsubscribeUrl, $manageSubscriptionsUrl)
static resolveUnsubscribePlaceholderToUrl (&$content, $unsubscribeUrl)
static resolveManageSubscriptionsPlaceholderToUrl (&$content, $manageSubscriptionsUrl)
static resolveDefaultFooterPlaceholderContentByType ($isHtmlContent)
static resolveUnsubscribeUrl ($hash, $preview)
static resolveManageSubscriptionsUrl ($hash, $preview)
static resolveAbsoluteUrlWithHashAndPreviewForFooter ($baseUrl, $hash, $preview)
static resolveFooterUrlParams ($hash, $preview)
static resolveUnsubscribeBaseUrl ()
static resolveManageSubscriptionsBaseUrl ()
static resolveMarketingExternalControllerUrl ()
static isMarketingExternalUrl ($url)
static validateAndResolveFullyQualifiedQueryStringArrayForTracking (&$queryStringArray)
static validateQueryStringArrayForMarketingListsExternalController (&$queryStringArray)
static validateQueryStringArrayAgainstRulesArray (&$queryStringArray, $rules)
static replaceSpacesWithPlusSymbol (&$hash)
static isValidHash ($hash)

Static Protected Attributes

static $baseQueryStringArray

Detailed Description

Helper class for working with emailMessageActivity

Definition at line 40 of file EmailMessageActivityUtil.php.


Member Function Documentation

static resolveQueryStringArrayForHash ( hash,
validateQueryStringArray = true,
validateForTracking = true 
) [static]
Parameters:
$hash 
bool $validateQueryStringArray
bool $validateForTracking
Returns:
array
Exceptions:
NotSupportedException 

Definition at line 61 of file EmailMessageActivityUtil.php.

static createOrUpdateActivity ( queryStringArray  )  [static]
Parameters:
array $queryStringArray
Returns:
bool | array
Exceptions:
FailedToSaveModelException 

Definition at line 145 of file EmailMessageActivityUtil.php.

static resolveUnsubscribeAndManageSubscriptionPlaceholders ( &$  content,
personId,
marketingListId,
modelId,
modelType,
isHtmlContent,
replaceExisting = false,
preview = false 
) [static]
Parameters:
$content 
$personId 
$marketingListId 
$modelId 
$modelType 
$isHtmlContent 
$replaceExisting 
bool $preview

Definition at line 411 of file EmailMessageActivityUtil.php.

static resolveModelClassNameByModelType ( modelType  )  [static]
Parameters:
$modelType 
Returns:
string

Definition at line 619 of file EmailMessageActivityUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Jan 23 07:10:24 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