Files
gutachten_t3/packages/gutachten/Classes/Downloads/_DownloadController.php
T

53 lines
1.5 KiB
PHP

<?php
namespace HermannTelser\Gutachten\Downloads;
use HermannTelser\Gutachten\Utility\Message;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/***
*
* 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>
*
* https://developmentgutachten.nuhodds.com/index.php?eID=tx_gutachten&controller=download_controller&action=pdf_excel&projekt_aktive=814
***/
class _DownloadController
{
public function __construct()
{
// Message::debug(__file__,__line__, "_DownloadController");
// exit;
switch (GeneralUtility::_GP('action')) {
// DOWNLOADS
case 'pdf_standards':
PdfStandards::download();
break;
case 'pdf_para6':
PdfParagraph6::download();
break;
case 'pdf_nutzflaechen':
PdfNutzflaeche::download();
break;
case 'excel_nutzflaechen':
ExcelNutzflaeche::download();
break;
case 'excel_aufstellung':
ExcelAufstellung::download();
break;
default:
Message::error(
__FILE__,
__LINE__,
'no controller switch defined'
);
}
}
}