Create abstract DBSearch#GetSQLQueryStructure() to allow "call hierarchy" to work

Visibility to public to allow testing

SVN:trunk[5187]
This commit is contained in:
Pierre Goiffon
2018-01-02 14:19:54 +00:00
parent f73ca10b6c
commit b2494ebaf7
2 changed files with 5 additions and 1 deletions

View File

@@ -567,6 +567,10 @@ abstract class DBSearch
return $oSQLQuery;
}
public abstract function GetSQLQueryStructure(
$aAttToLoad, $bGetCount, $aGroupByExpr = null, $aSelectedClasses = null
);
////////////////////////////////////////////////////////////////////////////
//
// Cache/Trace/Log queries

View File

@@ -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)
{