All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
ReportRelationsAndAttributesToTreeAdapter Class Reference
Inheritance diagram for ReportRelationsAndAttributesToTreeAdapter:
WizardModelRelationsAndAttributesToTreeAdapter CalendarReportRelationsAndAttributesToTreeAdapter MergeTagsReportRelationsAndAttributesToTreeAdapter

Public Member Functions

 __construct (Report $report, $treeType)
 
 getData ($nodeId)
 
- Public Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
 getTreeType ()
 

Protected Member Functions

 getChildrenNodeData (ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter, RedBeanModel $precedingModel=null, $precedingRelation=null, $nodeIdPrefix=null)
 
 resolveChildNodeDataValueForAttributeNode (&$attributeNode, $attribute, $nodeIdPrefix)
 
 getAttributesData (ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter, RedBeanModel $precedingModel=null, $precedingRelation=null)
 
 makeModelRelationsAndAttributesToReportAdapter ($moduleClassName, $modelClassName)
 
 resolvePrecedingModelRelationAndAdapterByNodeId ($nodeId, &$modelToReportAdapter, &$precedingModel, &$precedingRelation)
 
- Protected Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
 makeNodeId ($relation, $nodeIdPrefix=null)
 
 resolveTreeTypeForMakingOrExplodingNodeId ()
 
 resolveNodeIdPrefixByNodeId ($nodeId)
 
 resolveNodeIdByRemovingTreeType ($nodeId)
 

Protected Attributes

 $report
 
- Protected Attributes inherited from WizardModelRelationsAndAttributesToTreeAdapter
 $treeType
 

Additional Inherited Members

- Static Public Member Functions inherited from WizardModelRelationsAndAttributesToTreeAdapter
static removeTreeTypeFromNodeId ($nodeId, $treeType)
 
static resolveInputPrefixData ($formModelClassName, $treeType, $rowNumber)
 
static resolveAttributeByNodeId ($nodeIdWithoutTreeType)
 

Detailed Description

Helper class for adapting relation and attribute data into tree data

Definition at line 40 of file ReportRelationsAndAttributesToTreeAdapter.php.

Constructor & Destructor Documentation

__construct ( Report  $report,
  $treeType 
)
Parameters
Report$report
string$treeType

Definition at line 51 of file ReportRelationsAndAttributesToTreeAdapter.php.

Member Function Documentation

getData (   $nodeId)
Parameters
string$nodeId
Returns
array

Definition at line 62 of file ReportRelationsAndAttributesToTreeAdapter.php.

getChildrenNodeData ( ModelRelationsAndAttributesToReportAdapter  $modelToReportAdapter,
RedBeanModel  $precedingModel = null,
  $precedingRelation = null,
  $nodeIdPrefix = null 
)
protected
Parameters
ModelRelationsAndAttributesToReportAdapter$modelToReportAdapter
RedBeanModel$precedingModel
null | string$precedingRelation
null | string$nodeIdPrefix
Returns
array
Exceptions
NotSupportedExceptionif one of the relations for the selectable data does not have a module class name defined

Definition at line 109 of file ReportRelationsAndAttributesToTreeAdapter.php.

resolveChildNodeDataValueForAttributeNode ( $attributeNode,
  $attribute,
  $nodeIdPrefix 
)
protected

Override as needed

Parameters
$attributeNode
$attribute
$nodeIdPrefix

Definition at line 153 of file ReportRelationsAndAttributesToTreeAdapter.php.

getAttributesData ( ModelRelationsAndAttributesToReportAdapter  $modelToReportAdapter,
RedBeanModel  $precedingModel = null,
  $precedingRelation = null 
)
protected
Parameters
ModelRelationsAndAttributesToReportAdapter$modelToReportAdapter
RedBeanModel$precedingModel
null | string$precedingRelation
Exceptions
NotSupportedExceptionif the treeType is invalid or null

Definition at line 163 of file ReportRelationsAndAttributesToTreeAdapter.php.

makeModelRelationsAndAttributesToReportAdapter (   $moduleClassName,
  $modelClassName 
)
protected
Parameters
string$moduleClassName
string$modelClassName
Returns
ModelRelationsAndAttributesToReportAdapter based object

Definition at line 200 of file ReportRelationsAndAttributesToTreeAdapter.php.

resolvePrecedingModelRelationAndAdapterByNodeId (   $nodeId,
$modelToReportAdapter,
$precedingModel,
$precedingRelation 
)
protected
Parameters
string$nodeId
ModelRelationsAndAttributesToReportAdapter$modelToReportAdapter
RedBeanModel$precedingModel
string$precedingRelation

Definition at line 214 of file ReportRelationsAndAttributesToTreeAdapter.php.


The documentation for this class was generated from the following file:
Generated on Wed Jun 3 2020 07:11:00