protected function AcquiaLiftReportBase::buildConversionReports in Acquia Lift Connector 7
Build a set of confidence reports from the report data.
Parameters
array $report_data: The extracted report data with the following keys:
- name: The name of the section
- detail: The detail report data
- summary: The summary report data
array $all_report_data: The full report data for all reports including overview information.
Return value
array|bool The render array for the reports or false if invalid data.
2 calls to AcquiaLiftReportBase::buildConversionReports()
- AcquiaLiftReportBase::buildAllConversionReports in plugins/
agent_types/ AcquiaLiftAgent.inc - Builds the conversion reports to show basic conversion metrics for report requested in the report_data.
- AcquiaLiftReportBase::buildConversionReport in plugins/
agent_types/ AcquiaLiftAgent.inc - Implements AcquiaLiftReportInterface()::buildConversionReport().
File
- plugins/
agent_types/ AcquiaLiftAgent.inc, line 2068 - Provides an agent type for Acquia Lift
Class
- AcquiaLiftReportBase
- Base class providing report data loading functionality common to all Acquia Lift Reports.
Code
protected function buildConversionReports($report_data, $all_report_data) {
if ($report_data['detail'] == FALSE || $report_data['summary'] == FALSE) {
return FALSE;
}
$build = array();
$build['reports']['title'] = array(
'#theme' => 'html_tag',
'#tag' => 'h3',
'#value' => $report_data['name'],
'#attributes' => array(
'class' => array(
'lift-statistic-category-name',
'element-invisible',
),
),
);
$build['reports']['detail'] = $this
->buildConversionDetailReport($report_data['detail'], $all_report_data);
$build['reports']['summary'] = $this
->buildConversionSummaryReport($report_data['summary'], $all_report_data);
$build['reports']['#theme_wrappers'] = array(
'container',
);
$build['reports']['#attributes'] = array(
'class' => array(
'lift-statistic-category',
),
);
return $build;
}