Files
gutachten_t3/packages/gutachten/Classes/DB/Select/ObjekteExcel.php
T

47 lines
1.5 KiB
PHP

<?php
namespace HermannTelser\Gutachten\DB\Select;
use HermannTelser\Gutachten\DB\DbFunction;
/***
*
* This file is part of the "NuhOdds Comparatore" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2019 Hermann Telser <hermann.telser@gmail.com>, NUH-Odds GmbH
*
***/
class ObjekteExcel
{
public static function select($projektid)
{
return DbFunction::selectJoin(
'tx_gutachten_raume_basis',
['[>]tx_gutachten_orientierung' => ['tx_gutachten_raume_basis.tt_orientierung_id' => 'id']],
[
'tx_gutachten_raume_basis.id',
'tx_gutachten_raume_basis.topNr',
'tx_gutachten_raume_basis.GNO',
'tx_gutachten_raume_basis.qmM1',
'tx_gutachten_raume_basis.factor',
'tx_gutachten_raume_basis.noDispInOrientierung (nodspl)',
'tx_gutachten_orientierung.orientierung',
],
[
'tx_gutachten_raume_basis.pid' => $projektid,
'ORDER' => 'tx_gutachten_raume_basis.topNr',
]
);
// $fields = 'a.id, a.topNr, a.GNO, a.qmM1, a.factor, a.noDispInOrientierung nodspl, b.orientierung';
// $from = 'tx_gutachten_raume_basis a,tx_gutachten_orientierung b';
// $where = 'a.tt_orientierung_id=b.id and a.pid = '.$projektid;
// $order = 'topNr';
// // echo $GLOBALS['TYPO3_DB']->SELECTquery($fields, $from, $where); exit;
// return $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($fields, $from, $where, '', $order);
}
}