ModelRelationsAndAttributesToSummationReportAdapter Class Reference

Inheritance diagram for ModelRelationsAndAttributesToSummationReportAdapter:
ModelRelationsAndAttributesToSummableReportAdapter ModelRelationsAndAttributesToReportAdapter

Public Member Functions

 getAttributesForOrderBys ($existingGroupBys=array(), $existingDisplayAttributes=array(), RedBeanModel $precedingModel=null, $precedingRelation=null)
 getForDrillDownAttributes ()
 getAttributesForChartSeries ($existingGroupBys=array(), $existingDisplayAttributes=array())
 getAttributesForChartRange ($existingDisplayAttributes=array())

Detailed Description

Helper class for managing adapting model relations and attributes into a summation report

Definition at line 40 of file ModelRelationsAndAttributesToSummationReportAdapter.php.


Member Function Documentation

getAttributesForOrderBys ( existingGroupBys = array(),
existingDisplayAttributes = array(),
RedBeanModel precedingModel = null,
precedingRelation = null 
)

Expected to be called from

See also:
ReportRelationsAndAttributesToTreeAdapter. This means the returned attributes should not carry any previous relation information. For example, hasOne___phone as an existing groupBy should return as 'phone' since it would be expected that it would be called on during just the ReportModelTestItem2 branch of the tree.
Parameters:
array $existingGroupBys
array $existingDisplayAttributes
null|RedBeanModel $precedingModel
null|string $precedingRelation
Returns:
array
Exceptions:
NotSupportedException if there the preceding model and relation are not either both defined or both null

Definition at line 55 of file ModelRelationsAndAttributesToSummationReportAdapter.php.

getForDrillDownAttributes (  ) 
Returns:
array

Definition at line 136 of file ModelRelationsAndAttributesToSummationReportAdapter.php.

getAttributesForChartSeries ( existingGroupBys = array(),
existingDisplayAttributes = array() 
)
Parameters:
array $existingGroupBys
array $existingDisplayAttributes
Returns:
array

Definition at line 149 of file ModelRelationsAndAttributesToSummationReportAdapter.php.

getAttributesForChartRange ( existingDisplayAttributes = array()  ) 
Parameters:
array $existingDisplayAttributes
Returns:
array

Definition at line 170 of file ModelRelationsAndAttributesToSummationReportAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Sep 23 07:10:26 2017