All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
ReportDataProviderToAmChartMakerAdapter Class Reference

Public Member Functions

 __construct (Report $report, Array $data, Array $secondSeriesValueData=array(), Array $secondSeriesDisplayLabels=array(), $secondSeriesValueCount=null)
 
 getType ()
 
 getData ()
 
 getSecondSeriesValueCount ()
 
 isStacked ()
 
 getSecondSeriesDisplayLabelByKey ($key)
 

Static Public Member Functions

static resolveFirstSeriesValueName ($key)
 
static resolveFirstSeriesDisplayLabelName ($key)
 
static resolveFirstRangeDisplayLabelName ($key)
 
static resolveFirstSeriesFormattedValueName ($key)
 
static resolveSecondSeriesValueName ($key)
 
static resolveSecondSeriesDisplayLabelName ($key)
 
static resolveSecondSeriesFormattedValueName ($key)
 

Data Fields

const FIRST_SERIES_VALUE = 'FirstSeriesValue'
 
const FIRST_SERIES_DISPLAY_LABEL = 'FirstSeriesDisplayLabel'
 
const FIRST_RANGE_DISPLAY_LABEL = 'FirstRangeDisplayLabel'
 
const FIRST_SERIES_FORMATTED_VALUE = 'FirstSeriesFormattedValue'
 
const SECOND_SERIES_VALUE = 'SecondSeriesValue'
 
const SECOND_SERIES_DISPLAY_LABEL = 'SecondSeriesDisplayLabel'
 
const SECOND_SERIES_FORMATTED_VALUE = 'SecondSeriesFormattedValue'
 

Protected Member Functions

 formatData ($data)
 
 formatValue (DisplayAttributeForReportForm $displayAttribute, $value)
 

Protected Attributes

 $report
 
 $data
 
 $secondSeriesValueData = array()
 
 $secondSeriesDisplayLabels = array()
 
 $secondSeriesValueCount
 
 $formattedData
 

Detailed Description

Helper class for adapting the ReportDataProvider data to an AmChartMakerAdapter

Definition at line 40 of file ReportDataProviderToAmChartMakerAdapter.php.

Constructor & Destructor Documentation

__construct ( Report  $report,
Array  $data,
Array  $secondSeriesValueData = array(),
Array  $secondSeriesDisplayLabels = array(),
  $secondSeriesValueCount = null 
)
Parameters
Report$report
array$data
array$secondSeriesValueData
array$secondSeriesDisplayLabels
null  |  integer$secondSeriesValueCount

Definition at line 163 of file ReportDataProviderToAmChartMakerAdapter.php.

Member Function Documentation

static resolveFirstSeriesValueName (   $key)
static
Parameters
$key
Returns
string

Definition at line 90 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveFirstSeriesDisplayLabelName (   $key)
static
Parameters
$key
Returns
string

Definition at line 100 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveFirstRangeDisplayLabelName (   $key)
static
Parameters
$key
Returns
string

Definition at line 110 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveFirstSeriesFormattedValueName (   $key)
static
Parameters
$key
Returns
string

Definition at line 120 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveSecondSeriesValueName (   $key)
static
Parameters
$key
Returns
string

Definition at line 130 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveSecondSeriesDisplayLabelName (   $key)
static
Parameters
$key
Returns
string

Definition at line 140 of file ReportDataProviderToAmChartMakerAdapter.php.

static resolveSecondSeriesFormattedValueName (   $key)
static
Parameters
$key
Returns
string

Definition at line 150 of file ReportDataProviderToAmChartMakerAdapter.php.

getType ( )
Returns
string

Definition at line 178 of file ReportDataProviderToAmChartMakerAdapter.php.

getData ( )
Returns
array

Definition at line 186 of file ReportDataProviderToAmChartMakerAdapter.php.

getSecondSeriesValueCount ( )
Returns
null|integer

Definition at line 198 of file ReportDataProviderToAmChartMakerAdapter.php.

isStacked ( )
Returns
bool

Definition at line 206 of file ReportDataProviderToAmChartMakerAdapter.php.

getSecondSeriesDisplayLabelByKey (   $key)
Parameters
$key
Returns
string

Definition at line 215 of file ReportDataProviderToAmChartMakerAdapter.php.

formatData (   $data)
protected
Parameters
$data
Returns
array

Definition at line 225 of file ReportDataProviderToAmChartMakerAdapter.php.

formatValue ( DisplayAttributeForReportForm  $displayAttribute,
  $value 
)
protected
Parameters
DisplayAttributeForReportForm$displayAttribute
mixed$value
Returns
mixed
Exceptions
NotSupportedExceptionif the currencyConversionType is invalid or null, when the displayAttribute is a currency type

Definition at line 263 of file ReportDataProviderToAmChartMakerAdapter.php.


The documentation for this class was generated from the following file:
Generated on Sat Mar 28 2020 07:11:17