Issue #2003548 by nathangervais, GekkoKammen, heddn: Rename Views method op_not() to opNotLike().

8.0.x
Alex Pott 2013-06-13 09:29:59 +01:00
parent 31b5fb7807
commit a7f6b939f9
2 changed files with 3 additions and 3 deletions

View File

@ -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) . '%'));
}

View File

@ -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');
}