/usr/share/drupal6/modules/views/handlers/views_handler_filter_float.inc is in drupal6-mod-views 2.16-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <?php
/**
* Simple filter to handle greater than/less than filters.
* It based on views_handler_filter_numeric but deals with
* float numbers.
*/
class views_handler_filter_float extends views_handler_filter_numeric {
function op_between($field) {
if ($this->operator == 'between') {
$this->query->add_where($this->options['group'], "$field >= %f", $this->value['min']);
$this->query->add_where($this->options['group'], "$field <= %f", $this->value['max']);
}
else {
$this->query->add_where($this->options['group'], "$field <= %f OR $field >= %f", $this->value['min'], $this->value['max']);
}
}
function op_simple($field) {
$this->query->add_where($this->options['group'], "$field $this->operator %f", $this->value['value']);
}
}
|