Issue #2003548 by nathangervais, GekkoKammen, heddn: Rename Views method op_not() to opNotLike().
parent
31b5fb7807
commit
a7f6b939f9
|
@ -121,7 +121,7 @@ class Combine extends String {
|
|||
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
|
||||
}
|
||||
|
||||
function op_not($expression) {
|
||||
protected function opNotLike($expression) {
|
||||
$placeholder = $this->placeholder();
|
||||
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ class String extends FilterPluginBase {
|
|||
'not' => array(
|
||||
'title' => t('Does not contain'),
|
||||
'short' => t('!has'),
|
||||
'method' => 'op_not',
|
||||
'method' => 'opNotLike',
|
||||
'values' => 1,
|
||||
),
|
||||
'shorterthan' => array(
|
||||
|
@ -317,7 +317,7 @@ class String extends FilterPluginBase {
|
|||
$this->query->addWhere($this->options['group'], $field, '%' . db_like($this->value), 'NOT LIKE');
|
||||
}
|
||||
|
||||
function op_not($field) {
|
||||
protected function opNotLike($field) {
|
||||
$this->query->addWhere($this->options['group'], $field, '%' . db_like($this->value) . '%', 'NOT LIKE');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue