You are here

function matrix_handler_filter::op_not_starts in Matrix field 7.2

Same name and namespace in other branches
  1. 8.2 views/matrix_handler_filter.inc \matrix_handler_filter::op_not_starts()

Overrides views_handler_filter_string::op_not_starts

File

views/matrix_handler_filter.inc, line 261

Class

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

Code

function op_not_starts($field) {
  $placeholder = $this
    ->placeholder();
  list($row, $col, $value) = explode('_____', $this->value);
  $this->query
    ->add_where($this->options['group'], $field . 'row', $row, '=');
  $this->query
    ->add_where($this->options['group'], $field . 'col', $col, '=');
  $this->query
    ->add_where_expression($this->options['group'], $field . "value NOT LIKE {$placeholder}", array(
    $placeholder => db_like($value) . '%',
  ));
}