From b2494ebaf75772265aef08397b8520344ec47c0c Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 2 Jan 2018 14:19:54 +0000 Subject: [PATCH] Create abstract DBSearch#GetSQLQueryStructure() to allow "call hierarchy" to work Visibility to public to allow testing SVN:trunk[5187] --- core/dbsearch.class.php | 4 ++++ core/dbunionsearch.class.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/dbsearch.class.php b/core/dbsearch.class.php index e27c2d6b2..e4880aff7 100644 --- a/core/dbsearch.class.php +++ b/core/dbsearch.class.php @@ -567,6 +567,10 @@ abstract class DBSearch return $oSQLQuery; } + public abstract function GetSQLQueryStructure( + $aAttToLoad, $bGetCount, $aGroupByExpr = null, $aSelectedClasses = null + ); + //////////////////////////////////////////////////////////////////////////// // // Cache/Trace/Log queries diff --git a/core/dbunionsearch.class.php b/core/dbunionsearch.class.php index 07f2b8cee..a533eb693 100644 --- a/core/dbunionsearch.class.php +++ b/core/dbunionsearch.class.php @@ -474,7 +474,7 @@ class DBUnionSearch extends DBSearch throw new Exception('MakeUpdateQuery is not implemented for the unions!'); } - protected function GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr = null, $aSelectedClasses = null) + public function GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr = null, $aSelectedClasses = null) { if (count($this->aSearches) == 1) {