You are here

function google_analytics_reports_handler_argument::query in Google Analytics Reports 7.3

Set up the query for this argument.

The argument sent may be found at $this->argument.

Parameters

bool $group_by: Whether the query uses a group-by.

Overrides views_handler_argument::query

File

handlers/google_analytics_reports_handler_argument.inc, line 33
Definition of google_analytics_reports_handler_argument.

Class

google_analytics_reports_handler_argument
Provides base argument functionality for Google Analytics fields.

Code

function query($group_by = FALSE) {
  if ($this->is_custom) {
    $this->real_field = google_analytics_reports_custom_to_variable_field($this->real_field, $this->options['custom_field_number']);
  }
  $this->operator = '==';
  $this->query
    ->add_where(1, $this->real_field, $this->argument, $this->operator);
}