MergeTagsUtil Class Reference

Inheritance diagram for MergeTagsUtil:
ContactMergeTagsUtil WorkflowMergeTagsUtil

Public Member Functions

 __construct ($language, $content)
 resolveMergeTagsArrayToAttributes ($model, &$invalidTags=array(), $language=null, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::DO_NOT_ERROR_ON_FIRST_INVALID_TAG, $params=array(), $convertNewLinesToBrForAttributeValues=false)
 resolveMergeTags ($model, &$invalidTags=array(), $language=null, $errorOnFirstMissing=MergeTagsToModelAttributesAdapter::DO_NOT_ERROR_ON_FIRST_INVALID_TAG, $params=array(), $convertNewLinesToBrForAttributeValues=false, $modelId=null, $modelType=null, $isHtmlContent=null)
 extractMergeTagsPlaceHolders ()
 resolveMergeTagsInTemplateToAttributes ()
 getContent ()

Static Public Member Functions

static resolveAttributeStringToMergeTagString ($attributeString)

Data Fields

const TAG_PREFIX = '[['
const TAG_SUFFIX = ']]'
const PROPERTY_DELIMITER = '__'
const TIME_DELIMITER = '%'
const CAPITAL_DELIMITER = '^'

Protected Member Functions

 resolveFullyQualifiedMergeTagsRegularExpression (&$mergeTags)
 resolveQuotedAttributes (&$attributes)

Static Protected Member Functions

static resolveUniqueMergeTags (&$mergeTags, $key)
static resolveFullyQualifiedMergeTagRegularExpression (&$value, $key)
static resolvePregQuotedValue (&$value)
static resolvePregQuotedAttributeValue (&$value, $key)

Protected Attributes

 $mergeTags
 $content
 $language

Detailed Description

Definition at line 40 of file MergeTagsUtil.php.


Constructor & Destructor Documentation

__construct ( language,
content 
)
Parameters:
$language 
string $content

Definition at line 96 of file MergeTagsUtil.php.


Member Function Documentation

resolveMergeTagsArrayToAttributes ( model,
&$  invalidTags = array(),
language = null,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::DO_NOT_ERROR_ON_FIRST_INVALID_TAG,
params = array(),
convertNewLinesToBrForAttributeValues = false 
)
Parameters:
$model 
array $invalidTags
null $language
int $errorOnFirstMissing
array $params
bool|false $convertNewLinesToBrForAttributeValues
Returns:
bool

Definition at line 111 of file MergeTagsUtil.php.

resolveMergeTags ( model,
&$  invalidTags = array(),
language = null,
errorOnFirstMissing = MergeTagsToModelAttributesAdapter::DO_NOT_ERROR_ON_FIRST_INVALID_TAG,
params = array(),
convertNewLinesToBrForAttributeValues = false,
modelId = null,
modelType = null,
isHtmlContent = null 
)
Parameters:
$model 
array $invalidTags
null $language
int $errorOnFirstMissing
array $params
Returns:
bool|string

Definition at line 140 of file MergeTagsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Dec 10 07:11:09 2019