From 671881420bfdefc3c9bb1b39cd0991c7b2190d62 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 15 Nov 2012 10:37:33 +1300 Subject: [PATCH] Remove deprecated PartialMatchFilter, use PartialMatchFilter instead --- search/filters/SubstringFilter.php | 44 ------------------------------ 1 file changed, 44 deletions(-) delete mode 100755 search/filters/SubstringFilter.php diff --git a/search/filters/SubstringFilter.php b/search/filters/SubstringFilter.php deleted file mode 100755 index 470963443..000000000 --- a/search/filters/SubstringFilter.php +++ /dev/null @@ -1,44 +0,0 @@ -getValue(); - $filter = new PartialMatchFilter($this->getFullName(), $values, $this->getModifiers()); - return $filter->apply($query); - } - - protected function applyOne(DataQuery $query) { - /* NO OP */ - } - - public function exclude(DataQuery $query) { - $values = $this->getValue(); - $filter = new PartialMatchFilter($this->getFullName(), $values, $this->getModifiers()); - return $filter->exclude($query); - } - - protected function excludeOne(DataQuery $query) { - /* NO OP */ - } - - public function isEmpty() { - return $this->getValue() === array() || $this->getValue() === null || $this->getValue() === ''; - } -} -