From a7f6b939f9c5def6aa36c4f5d50dee9f59fc40b7 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 13 Jun 2013 09:29:59 +0100 Subject: [PATCH] Issue #2003548 by nathangervais, GekkoKammen, heddn: Rename Views method op_not() to opNotLike(). --- .../views/lib/Drupal/views/Plugin/views/filter/Combine.php | 2 +- .../views/lib/Drupal/views/Plugin/views/filter/String.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php index 31e4fa3f6fb..6411a6919a3 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php @@ -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) . '%')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php index 28d6da4880e..4768c6ed1a8 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php @@ -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'); }