function views_handler_filter_string::op_contains

1 method overrides views_handler_filter_string::op_contains()
views_handler_filter_combine::op_contains in handlers/views_handler_filter_combine.inc

File

handlers/views_handler_filter_string.inc, line 282

Class

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

Code

public function op_contains($field) {
    if (!empty($this->value)) {
        $this->query
            ->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE');
    }
}