Chore: Verschiebe Git-Repository in das Hauptverzeichnis und richte .gitignore ein

This commit is contained in:
salam committed 2026-10-19 10:11:04 +02:00
commit 96d0545193
502 files changed
+176027

No files matched your search

@@ -0,0 +1,19 @@
<?php
namespace HermannTelser\Gutachten\DB\Delete;
use HermannTelser\Gutachten\DB\DbFunction;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class DeleteById
{
public static function delete()
{
// DbFunction::$debug = 1;
$table = GeneralUtility::_GP('table');
$rowid = GeneralUtility::_GP('id');
DbFunction::delete($table, ['id' => $rowid]);
}
}
@@ -0,0 +1,33 @@
<?php
namespace HermannTelser\Gutachten\DB\Delete;
use HermannTelser\Gutachten\DB\DbFunction;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class DeleteMerkmal
{
public static function delete()
{
// DbFunction::$debug = 1;
$id = GeneralUtility::_GP('id');
if(!$id){
exit;
}
$_merkmal = DbFunction::select('tx_gutachten_help',['pid','colid'], ['id' => $id]);
if($_merkmal){
$field = $_merkmal[0]['colid'];
$update_array[$field] = 0;
DbFunction::secureUpdate('tx_gutachten_raume_basis', $update_array, ['pid' => $_merkmal[0]['pid']]);
DbFunction::delete('tx_gutachten_help', ['id' => $id]);
DbFunction::query("Update tx_gutachten_raume_basis SET summe_az = a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u where pid=" . $_merkmal[0]['pid']);
DbFunction::query("Update tx_gutachten_raume_basis SET bewertung = 100 - summe_az where pid=" . $_merkmal[0]['pid']);
echo 1;
exit;
}
}
}
@@ -0,0 +1,29 @@
<?php
namespace HermannTelser\Gutachten\DB\Delete;
use HermannTelser\Gutachten\Utility\Message;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use HermannTelser\Gutachten\DB\DbFunction;
class DeleteProjekt
{
public static function delete()
{
if (null !== GeneralUtility::_GP('id')) {
$projekt_id = GeneralUtility::_GP('id');
DbFunction::delete('tx_gutachten_projekte', ['id' => $projekt_id]);
$_tables = ['tx_gutachten_freigabe','tx_gutachten_projekteplatzhalter','tx_gutachten_projektestandards','tx_gutachten_raume_all','tx_gutachten_raume_basis','tx_gutachten_raume_generell'];
foreach ($_tables as $key => $table) {
DbFunction::delete($table, ['pid' => $projekt_id]);
}
}
echo 1;
exit;
}
}
@@ -0,0 +1,16 @@
<?php
namespace HermannTelser\Gutachten\DB\Delete;
use HermannTelser\Gutachten\DB\DbFunction;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class DeleteRaumartBasis
{
public static function delete()
{
$rowid = GeneralUtility::_GP('id');
DbFunction::delete('tx_gutachten_raume_basis', ['id' => $rowid]);
DbFunction::delete('tx_gutachten_raume_all', ['tt_raume_basis_id' => $rowid]);
}
}
@@ -0,0 +1,56 @@
<?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();
}
}