MergeTagsReportRelationsAndAttributesToTreeAdapter Class Reference

Inheritance diagram for MergeTagsReportRelationsAndAttributesToTreeAdapter:
ReportRelationsAndAttributesToTreeAdapter WizardModelRelationsAndAttributesToTreeAdapter

Public Member Functions

 __construct (Report $report, $treeType, $uniqueId=null)
 getData ($nodeId)

Protected Member Functions

 resolveTreeTypeForMakingOrExplodingNodeId ()
 resolveSpecialTagNodes ()
 makeModelRelationsAndAttributesToReportAdapter ($moduleClassName, $modelClassName)
 resolveChildNodeDataValueForAttributeNode (&$attributeNode, $attribute, $nodeIdPrefix)
 getSpecialTagsData ()

Protected Attributes

 $uniqueId

Detailed Description

Helper class for adapting relation and attribute data into tree data for showing a list of selectable merge tags

Definition at line 40 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.


Constructor & Destructor Documentation

__construct ( Report report,
treeType,
uniqueId = null 
)
Parameters:
Report $report
string $treeType
null $uniqueId

Definition at line 49 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.


Member Function Documentation

getData ( nodeId  ) 

Override to support adding special tags

Parameters:
string $nodeId
Returns:
array

Reimplemented from ReportRelationsAndAttributesToTreeAdapter.

Definition at line 61 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.

makeModelRelationsAndAttributesToReportAdapter ( moduleClassName,
modelClassName 
) [protected]

Override to call a different report adapter class for merge tags. This will allow special tags to be added as well as blocking hasMany variations.

Parameters:
string $moduleClassName
string $modelClassName
Returns:
ModelRelationsAndAttributesToReportAdapter based object

Reimplemented from ReportRelationsAndAttributesToTreeAdapter.

Definition at line 102 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.

resolveChildNodeDataValueForAttributeNode ( &$  attributeNode,
attribute,
nodeIdPrefix 
) [protected]

Override as needed

Parameters:
$attributeNode 
$attribute 
$nodeIdPrefix 

Reimplemented from ReportRelationsAndAttributesToTreeAdapter.

Definition at line 120 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.

getSpecialTagsData (  )  [protected]

[[MODEL^URL]] : prints absolute url to the current model attached to template. [[BASE^URL]] : prints absolute url to the current install without trailing slash. [[APPLICATION^NAME]] : prints application name as set in global settings > application name. [[CURRENT^YEAR]] : prints current year. [[LAST^YEAR]] : prints last year. [[OWNERS^AVATAR^SMALL]] : prints the owner's small avatar image (32x32). [[OWNERS^AVATAR^MEDIUM ]] : prints the owner's medium avatar image (32x32). [[OWNERS^AVATAR^LARGE]] : prints the owner's large avatar image (32x32). [[OWNERS^EMAIL^SIGNATURE]] : prints the owner's email signature. {{UNSUBSCRIBE_URL}} : prints unsubscribe url. {{MANAGE_SUBSCRIPTIONS_URL}} : prints manage subscriptions url.

Returns:
array

Definition at line 139 of file MergeTagsReportRelationsAndAttributesToTreeAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jul 24 07:10:27 2017