, NUH-Odds GmbH * ***/ class Paragraph62 { // active projekte für user public static function select($projekt_id) { // kennung kopf txt kontaktperson email telefon editor timestamp // DbFunction::$debug = 1; return DbFunction::selectJoin( 'tx_gutachten_raume_basis', ['[>]tx_gutachten_orientierung' => ['tx_gutachten_raume_basis.tt_orientierung_id' => 'id'], '[>]tx_gutachten_raume_all' => ['tx_gutachten_raume_basis.id' => 'tt_raume_basis_id']], [ // 'tx_gutachten_raume_basis.id', 'tx_gutachten_raume_basis.topNr', 'tx_gutachten_raume_all.geschoss', 'tx_gutachten_orientierung.orientierung', 'tx_gutachten_raume_basis.typ', // 'tx_gutachten_raume_basis.qmM1uM2bis(nzfl)', // 'tx_gutachten_raume_basis.noDispInOrientierung', // 'tx_gutachten_raume_all.qm(nzfl_apg)', ], [ 'AND' => [ 'tx_gutachten_raume_all.tt_raumart_id' => [1,5,6,9], 'tx_gutachten_raume_basis.pid' => $projekt_id ], 'GROUP' => ['tx_gutachten_raume_all.tt_raume_basis_id'], 'ORDER' => ['tx_gutachten_raume_all.tt_raumart_id' => 'ASC','tx_gutachten_raume_basis.topNr' => 'ASC'] ] ); // print_r($res); // exit; // $fields = 'a.id, a.topNr, a.typ, a.qmM1uM2bis AS nzfl, a.noDispInOrientierung, b.orientierung, c.geschoss, c.qm AS nzfl_apg'; // $from = 'tx_gutachten_raume_basis a, tx_gutachten_orientierung b, tx_gutachten_raume_all c'; // $where = 'a.tt_orientierung_id=b.id and a.id=c.tt_raume_basis_id and c.tt_raumart_id IN (1,5,6,9) and a.pid = '.$projekt_id; // $group = 'c.tt_raume_basis_id'; // $order = 'c.tt_raumart_id, a.topNr'; // echo $GLOBALS['TYPO3_DB']->SELECTquery($fields, $from, $where, $group, $order);exit; // return $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($fields, $from, $where, $group, $order); // return DbFunction::query("SELECT $fields FROM $from WHERE $where GROUP BY $group ORDER BY $order"); } }