You are here

protected function AcquiaLiftReportBase::getConfidenceReportRawName in Acquia Lift Connector 7

Generates an internal raw report name for a confidence report based on the options.

@returns string The name of a report to reference within the raw reporting data.

Parameters

$options: An array of options passed to the confidence report loader.

2 calls to AcquiaLiftReportBase::getConfidenceReportRawName()
AcquiaLiftReportBase::loadConfidenceData in plugins/agent_types/AcquiaLiftAgent.inc
Loads the agent confidence raw reporting data.
AcquiaLiftReportBase::loadConversionReportHelper in plugins/agent_types/AcquiaLiftAgent.inc
Handles all of the logic to load and extract a conversion report.

File

plugins/agent_types/AcquiaLiftAgent.inc, line 1302
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 getConfidenceReportRawName($options = array()) {
  $report_name = 'confidence';
  if (!empty($options['goal'])) {
    $report_name .= '_' . $options['goal'];
  }
  if (isset($options['aggregated-over-dates']) && $options['aggregated-over-dates'] == FALSE) {
    $report_name .= '_detail';
  }
  return $report_name;
}