first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Zuladungsliste\Zuteilungen;
|
||||
|
||||
use ForceUTF8\Encoding;
|
||||
use TYPO3\CMS\Core\Database\ConnectionPool;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Zuladungsliste\Utilities\Message;
|
||||
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
|
||||
|
||||
/***
|
||||
*
|
||||
* This file is part of the "Zuladungsliste Steiermark" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 - 2022 Hermann Telser <hermann.telser@gmail.com>
|
||||
*
|
||||
* All rights reserved
|
||||
* ************************************************************* */
|
||||
|
||||
class ZuteilungenErteilt
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public static function laden()
|
||||
{
|
||||
$limitSelection=date('Y-m-d', strtotime('-1 year'));
|
||||
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_zuladungsliste_zuteilungen');
|
||||
$queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
|
||||
$queryBuilder
|
||||
->select('tx_zuladungsliste_zuteilungen.uid', 'tx_zuladungsliste_zuteilungen.tstamp', 'b.wettbewerb', 'tx_zuladungsliste_zuteilungen.anzahl_architekten')
|
||||
->from('tx_zuladungsliste_zuteilungen')
|
||||
->join(
|
||||
'tx_zuladungsliste_zuteilungen',
|
||||
'tx_zuladungsliste_domain_model_wettbewerbe',
|
||||
'b',
|
||||
$queryBuilder->expr()->eq('b.uid', $queryBuilder->quoteIdentifier('tx_zuladungsliste_zuteilungen.uid_wettbewerbe'))
|
||||
);
|
||||
$statement = $queryBuilder->execute()->fetchAll();
|
||||
|
||||
// Message::note($queryBuilder->getSQL());
|
||||
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($statement);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user