You are here

public function elasticsearch_connector_views_handler_filter_date::query in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7 modules/elasticsearch_connector_views/handlers/elasticsearch_connector_views_handler_filter_date.inc \elasticsearch_connector_views_handler_filter_date::query()
  2. 7.2 modules/elasticsearch_connector_views/handlers/elasticsearch_connector_views_handler_filter_date.inc \elasticsearch_connector_views_handler_filter_date::query()

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_numeric::query

File

modules/elasticsearch_connector_views/handlers/elasticsearch_connector_views_handler_filter_date.inc, line 9
Specific handler for date field for elasticsearch.

Class

elasticsearch_connector_views_handler_filter_date
@file

Code

public function query() {
  $this
    ->ensure_my_table();
  $field = $this->real_field;
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}($field);
  }
}