From ed07c0acf2918540bef9cf3d85ee0a1e2c6e1539 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Aug 2008 10:09:28 +0000 Subject: [PATCH] Made some methods on SearchFilter public so that SearchFilters can be co-opted for other purposes. Really, moving the magic to a DataQuery object would be better git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61067 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- search/filters/SearchFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/filters/SearchFilter.php b/search/filters/SearchFilter.php index 3cadcd9cf..0d81e3ffe 100644 --- a/search/filters/SearchFilter.php +++ b/search/filters/SearchFilter.php @@ -80,7 +80,7 @@ abstract class SearchFilter extends Object { * * @return string */ - protected function getDbName() { + function getDbName() { // SRM: This code finds the table where the field named $this->name lives // Todo: move to somewhere more appropriate, such as DataMapper, the magical class-to-be? $candidateClass = $this->model; @@ -101,7 +101,7 @@ abstract class SearchFilter extends Object { * @param SQLQuery $query * @return SQLQuery */ - protected function applyRelation($query) { + function applyRelation($query) { if (is_array($this->relation)) { foreach($this->relation as $rel) { $model = singleton($this->model);