You are here

function Numeric::op_between in Views (for Drupal 7) 8.3

2 methods override Numeric::op_between()
Date::op_between in lib/Drupal/views/Plugin/views/filter/Date.php
GroupByNumeric::op_between in lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php

File

lib/Drupal/views/Plugin/views/filter/Numeric.php, line 256
Definition of Drupal\views\Plugin\views\filter\Numeric.

Class

Numeric
Simple filter to handle greater than/less than filters

Namespace

Drupal\views\Plugin\views\filter

Code

function op_between($field) {
  if ($this->operator == 'between') {
    $this->query
      ->add_where($this->options['group'], $field, array(
      $this->value['min'],
      $this->value['max'],
    ), 'BETWEEN');
  }
  else {
    $this->query
      ->add_where($this->options['group'], db_or()
      ->condition($field, $this->value['min'], '<=')
      ->condition($field, $this->value['max'], '>='));
  }
}