| 1 |
<?php |
<?php |
| 2 |
// $Id: views_handler_filter_string.inc,v 1.7.2.1 2009/06/25 21:48:04 merlinofchaos Exp $ |
// $Id: views_handler_filter_string.inc,v 1.7.2.2 2009/09/15 16:25:52 merlinofchaos Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Basic textfield filter to handle string filtering commands |
* Basic textfield filter to handle string filtering commands |
| 300 |
function op_not($field, $upper) { |
function op_not($field, $upper) { |
| 301 |
$this->query->add_where($this->options['group'], "$upper(%s) NOT LIKE $upper('%%%s%%')", $field, $this->value); |
$this->query->add_where($this->options['group'], "$upper(%s) NOT LIKE $upper('%%%s%%')", $field, $this->value); |
| 302 |
} |
} |
| 303 |
|
|
| 304 |
function op_shorter($field, $upper) { |
function op_shorter($field, $upper) { |
| 305 |
$this->query->add_where($this->options['group'], "LENGTH($upper(%s)) < %d", $field, $this->value); |
$this->query->add_where($this->options['group'], "LENGTH($upper(%s)) < %d", $field, $this->value); |
| 306 |
} |
} |