You are here

public function AcquiaLiftReportDataFromFile::getConfidenceReport in Acquia Lift Connector 7

Implements AcquiaLiftReportDataSourceInterface::getConfidenceReport().

Overrides AcquiaLiftReportDataSourceInterface::getConfidenceReport

File

includes/acquia_lift.classes.inc, line 1621
Provides an agent type for Acquia Lift

Class

AcquiaLiftReportDataFromFile

Code

public function getConfidenceReport($agent_name, $date_start = NULL, $date_end = NULL, $point = NULL, $options = array()) {
  $report_name = 'confidence';
  if (!empty($options['goal'])) {

    // There are two sample goal reports included in the test file structure.
    // Pick one at random to show for the selected goal.
    $report_name .= '_goal' . rand(1, 2);
  }
  if (isset($options['aggregated-over-dates']) && $options['aggregated-over-dates'] === FALSE) {
    $report_name .= '_detail';
  }
  return $this
    ->getReport($agent_name, $report_name);
}