You are here

function google_analytics_reports_handler_filter::query in Google Analytics Reports 7.3

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides views_handler_filter::query

File

handlers/google_analytics_reports_handler_filter.inc, line 82
Definition of google_analytics_reports_handler_filter.

Class

google_analytics_reports_handler_filter
Provides base filter functionality for Google Analytics fields.

Code

function query() {
  if ($this->is_custom) {
    $this->real_field = google_analytics_reports_custom_to_variable_field($this->real_field, $this->options['custom_field_number']);
  }
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}($this->real_field);
  }
}