You are here

class views_handler_filter_ad_statistics_action in Advertisement 6.2

Hierarchy

Expanded class hierarchy of views_handler_filter_ad_statistics_action

1 string reference to 'views_handler_filter_ad_statistics_action'
ad_views_data in views/ad.views.inc
Implementation of hook_views_data().

File

views/handlers/views_handler_filter_ad_statistics_action.inc, line 8

View source
class views_handler_filter_ad_statistics_action extends views_handler_filter_in_operator {
  function get_value_options() {
    $this->value_options = array(
      'view' => 'Impressions',
      'click' => 'Clicks',
    );
  }
  function query() {
    $info = $this
      ->operators();
    if (!empty($info[$this->operator]['method'])) {
      $this
        ->{$info[$this->operator]['method']}();
    }
    $this->query
      ->add_where($this->options['group'], "{$this->table_alias}.action IN ('view', 'click')");
  }

}

Members