public function __construct($aQueries, $aGroupBy)
 {
     parent::__construct();
     $this->aQueries = array();
     foreach ($aQueries as $oSQLQuery) {
         $this->aQueries[] = $oSQLQuery->DeepClone();
     }
     $this->aGroupBy = $aGroupBy;
 }
 public function __construct($sTable, $sTableAlias, $aFields, $bToDelete = true, $aValues = array(), $oSelectedIdField = null)
 {
     parent::__construct();
     // This check is not needed but for developping purposes
     //if (!CMDBSource::IsTable($sTable))
     //{
     //	throw new CoreException("Unknown table '$sTable'");
     //}
     // $aFields must be an array of "alias"=>"expr"
     // $oConditionExpr must be a condition tree
     // $aValues is an array of "alias"=>value
     $this->m_sTable = $sTable;
     $this->m_sTableAlias = $sTableAlias;
     $this->m_aFields = $aFields;
     $this->m_aGroupBy = null;
     $this->m_oConditionExpr = null;
     $this->m_bToDelete = $bToDelete;
     $this->m_aValues = $aValues;
     $this->m_oSelectedIdField = $oSelectedIdField;
 }