function office_hours_handler_filter_hours::query in Office Hours 7
Add this filter to the query.
todo: make this work. Take date_views_filter_handler , date_views_filter_handler_simple as examples.
Overrides views_handler_filter_numeric::query
File
- includes/
office_hours_handler_filter_hours.inc, line 60 - Implements Views integration: hours filter
Class
- office_hours_handler_filter_hours
- Adds an hours handler to the filter.
Code
function query() {
return;
// $this->ensure_my_table();
// $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $this->value, $this->operator);
/*
switch ($this->operator) {
case '<':
case '<=':
case '=':
case '!=':
case '>=':
case '>':
$this->value['starthours'] = $this->value['value'];
$this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $this->value, $this->operator);
break;
case 'between':
break;
case 'not between':
break;
case 'empty':
case 'not empty':
$this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $this->value, $this->operator);
break;
break;
}
*/
}