Files
gutachten_t3/packages/gutachten/Classes/DB/Delete/_DeleteController.php
T

57 lines
1.1 KiB
PHP

<?php
namespace HermannTelser\Gutachten\DB\Delete;
use HermannTelser\Gutachten\Berechnungen\Berechnung;
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>, NUH-Odds GmbH
*
***/
class _DeleteController
{
public function __construct()
{
$arr = [];
switch (GeneralUtility::_GP('action')) {
// delete
case 'delete_from_table':
DeleteById::delete();
Berechnung::berechnen();
break;
case 'delete_raumart_von_basis':
DeleteRaumartBasis::delete();
Berechnung::berechnen();
break;
case 'projekt_delete':
DeleteProjekt::delete();
break;
case 'delete_merkmal':
DeleteMerkmal::delete();
break;
case 'delete_by_id':
DeleteById::delete();
break;
default:
Message::error(
__FILE__,
__LINE__,
'no controller switch defined'
);
}
header('Content-Type: application/json');
echo json_encode($arr);
exit();
}
}