You are here

function views_handler_filter_string::op_ends in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_ends()
  2. 7.3 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_ends()

File

handlers/views_handler_filter_string.inc, line 280

Class

views_handler_filter_string
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Code

function op_ends($field, $upper) {
  $this->query
    ->add_where($this->options['group'], "{$upper}({$field}) LIKE {$upper}('%%%s')", $this->value);
}