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

32 lines
1.1 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 OrientierungProjekt
{
// active projekte für user
public static function select($projekt_id)
{
$fields = 'a.id,a.pid,a.topNr,a.typ,a.tt_orientierung_id,b.orientierung,a.noDispInOrientierung,a.a,a.b,a.c,a.d,a.e,a.f,a.g,a.h,a.i,a.j,a.k,a.l,a.m,a.n,a.o,a.p,a.q,a.r,a.s,a.t,a.u,a.summe_az,a.bewertung,a.notizen';
$from = 'tx_gutachten_raume_basis a, tx_gutachten_orientierung b';
$where = "a.pid=$projekt_id AND a.tt_orientierung_id=b.id";
// echo $GLOBALS['TYPO3_DB']->SELECTquery($fields, $from, $where);exit;
// return $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($fields, $from, $where);
return DbFunction::query("SELECT $fields FROM $from WHERE $where");
}
}