protected function resolveMergeTagParams()
 {
     // TODO: @Shoaibi: Critical0: We have to send in dummy data to allow resolution of unsubscribe
     // and manage subscriptions merge tags.
     return GlobalMarketingFooterUtil::resolveFooterMergeTagsArray(1, 2, 3, 'AutoresponderItem', false, true);
 }
 /**
  * Resolve content for merge tags and return resolution result
  * @param $content
  * @param RedBeanModel $attachedModel
  * @param int $emailTemplateType
  * @param int $errorOnFirstMissing
  * @param null $language
  * @param array $invalidTags
  * @param null $marketingListId
  * @param bool $preview
  * @param null $modelId
  * @param null $modelType
  * @param null $personId
  * @param bool $isHtmlContent
  * @return bool
  * @throws NotSupportedException
  */
 public static function 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)
 {
     $params = GlobalMarketingFooterUtil::resolveFooterMergeTagsArray($personId, $marketingListId, $modelId, $modelType, !$preview, $preview, $isHtmlContent);
     $util = MergeTagsUtilFactory::make($emailTemplateType, $language, $content);
     $resolvedContent = $util->resolveMergeTags($attachedModel, $invalidTags, $language, $errorOnFirstMissing, $params);
     if ($resolvedContent !== false) {
         $content = $resolvedContent;
         return true;
     }
     return false;
 }
 protected static function resolveContentForMergeTags(&$content)
 {
     $language = null;
     $errorOnFirstMissing = true;
     $templateType = EmailTemplate::TYPE_CONTACT;
     $invalidTags = array();
     $textMergeTagsUtil = MergeTagsUtilFactory::make($templateType, $language, $content);
     $params = GlobalMarketingFooterUtil::resolveFooterMergeTagsArray(1, 2, 3, 'AutoresponderITem', true, false);
     $content = $textMergeTagsUtil->resolveMergeTags(Yii::app()->user->userModel, $invalidTags, $language, $errorOnFirstMissing, $params);
     return $content !== false;
 }
 protected function resolveMergeTagParams()
 {
     return GlobalMarketingFooterUtil::resolveFooterMergeTagsArray(1, 2, 3, 'AutoresponderItem', false, true);
 }
 protected static function resolveMergeTagsParams($marketingListId, $modelId, $modelType, $isHtmlContent = false)
 {
     $params = GlobalMarketingFooterUtil::resolveFooterMergeTagsArray(static::$personId, $marketingListId, $modelId, $modelType, true, false, $isHtmlContent);
     return $params;
 }