Source for file SqlMerger.php
Documentation is available at SqlMerger.php
*   Creates an sql string from an sql array  
*   @author Christian Weiske <cweiske@cweiske.de>  
    public static function getSelect(Query $query, $arSqls, $strAdditional = 
'')  
        if (count($arSqls) == 
1) {  
            return implode('', $arSqls[0]) . 
$strAdditional;  
            ($query->getResultForm() == 
'select distinct' ? 
'' : 
' ALL');  
        foreach ($arSqls as $arSql) {  
            $ar[] = 
implode('', $arSql) . 
$strAdditional;  
        return '(' . 
implode(') ' . 
$strUnion . 
' (', $ar) . 
')';  
    }//public static function getSelect(Query $query, $arSqls, $strAdditional = '')  
    public static function getCount(Query $query, $arSqls, $strAdditional = 
'')  
        if (count($arSqls) == 
1) {  
            return 'SELECT COUNT(*) as count ' . 
$arSqls[0]['from'] . 
$arSqls[0]['where'] . 
$strAdditional;  
        foreach ($arSqls as $arSql) {  
            $ar[] = 
implode('', $arSql) . 
$strAdditional;  
        return 'SELECT (' . 
implode(') + (', $ar) . 
') as count';  
    }//public static function getCount(Query $query, $arSqls, $strAdditional = '')  
}//class SparqlEngineDb_SqlMerger  
 
 
	
		Documentation generated on Fri,  1 Jun 2007 16:52:25 +0200 by phpDocumentor 1.3.2