Chore: Verschiebe Git-Repository in das Hauptverzeichnis und richte .gitignore ein
This commit is contained in:
commit
96d0545193
502 files changed
+176027
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
|
||||
class AbgleichRaumeGenerell
|
||||
{
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$projektid = GeneralUtility::_GP('id');
|
||||
|
||||
$arr = DbFunction::select('tx_gutachten_raume_all', ['tt_raumart_id', 'raum', 'factor'], ['pid' => $projektid]);
|
||||
|
||||
foreach ($arr as $value) {
|
||||
$arr2 = DbFunction::get('tx_gutachten_raume_generell', 'pid', ['AND' => ['raum' => $value['raum'], 'pid' => $projektid]]);
|
||||
if (!$arr2) {
|
||||
$insert_array = [];
|
||||
$insert_array['tt_raumart_id'] = $value['tt_raumart_id'];
|
||||
$insert_array['pid'] = $projektid;
|
||||
$insert_array['raum'] = $value['raum'];
|
||||
$insert_array['factor'] = $value['factor'];
|
||||
DbFunction::secureInsert('tx_gutachten_raume_generell', $insert_array);
|
||||
}
|
||||
}
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
|
||||
class ToggleField
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$table = GeneralUtility::_GP('table');
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$rowid = GeneralUtility::_GP('id');
|
||||
$value_array = [];
|
||||
$value_array[$field] = FALSE;
|
||||
// $value_array["$field[*]"] = -1;
|
||||
|
||||
DbFunction::query("UPDATE $table SET $field = !$field WHERE id=$rowid");
|
||||
|
||||
// DbFunction::secureUpdate($table, $update_array, ['id' => $rowid]);
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use HermannTelser\Gutachten\DB\Select;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateAllgemeine
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('rowid');
|
||||
|
||||
$update_array = [];
|
||||
switch($field){
|
||||
case "factor";
|
||||
$update_array['qm'] = str_replace(',', '.', $value);
|
||||
break;
|
||||
case "geschoss":
|
||||
$update_array['geschoss'] = (string) $value;
|
||||
break;
|
||||
case "typ":
|
||||
$update_array['typ'] = (string) $value;
|
||||
break;
|
||||
default:
|
||||
exit;
|
||||
}
|
||||
|
||||
DbFunction::secureUpdate("tx_gutachten_allgemein", $update_array, ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use HermannTelser\Gutachten\DB\Select;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateAllgemeineAll
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('rowid');
|
||||
|
||||
$update_array = [];
|
||||
switch($field){
|
||||
case "factor";
|
||||
$update_array['factor'] = str_replace(',', '.', $value);
|
||||
break;
|
||||
case "geschoss":
|
||||
$update_array['geschoss'] = (string) $value;
|
||||
break;
|
||||
case "qm":
|
||||
$update_array['qm'] = str_replace(',', '.', $value);
|
||||
break;
|
||||
default:
|
||||
exit;
|
||||
}
|
||||
|
||||
DbFunction::secureUpdate("tx_gutachten_raume_all", $update_array, ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateAufstellung
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
$value = (string) GeneralUtility::_GP('value');
|
||||
$id = GeneralUtility::_GP('id');
|
||||
DbFunction::secureUpdate('tx_gutachten_aufstellung', ['titel' => $value], ['id' => $id]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateAufstellungMany
|
||||
{
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$aufstellung_id = GeneralUtility::_GP('aufstellung_id');
|
||||
if (!is_numeric($aufstellung_id)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$rowdata = GeneralUtility::_GP('data');
|
||||
$data = json_decode($rowdata, true);
|
||||
|
||||
foreach ($data as $key => $rowid) {
|
||||
$update_array = [];
|
||||
$update_array['aufstellung_id'] = $aufstellung_id;
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_generell', $update_array, ['id' => $rowid]);
|
||||
}
|
||||
DbFunction::$projektid = DbFunction::get("tx_gutachten_raume_generell", "pid", ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateField
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
$table = GeneralUtility::_GP('table');
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('id');
|
||||
$update_array = [];
|
||||
$update_array[$field] = $value;
|
||||
DbFunction::secureUpdate($table, $update_array, ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use HermannTelser\Gutachten\DB\Select;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateMethod
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('rowid');
|
||||
|
||||
|
||||
$update_array = [];
|
||||
switch($field){
|
||||
case "factor";
|
||||
$update_array['factor'] = str_replace(',', '.', $value);
|
||||
break;
|
||||
case "raumart_id":
|
||||
$update_array['tt_raumart_id'] =(int) $value;
|
||||
break;
|
||||
default:
|
||||
exit;
|
||||
}
|
||||
|
||||
DbFunction::secureUpdate("tx_gutachten_raume_generell", $update_array, ['id' => $rowid]);
|
||||
|
||||
DbFunction::$projektid = DbFunction::get("tx_gutachten_raume_generell", "pid", ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateMethodMany
|
||||
{
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$methodid = GeneralUtility::_GP('methodid');
|
||||
if (!is_numeric($methodid)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$rowdata = GeneralUtility::_GP('data');
|
||||
$data = json_decode($rowdata, true);
|
||||
|
||||
foreach ($data as $key => $rowid) {
|
||||
$update_array = [];
|
||||
$update_array['tt_raumart_id'] = $methodid;
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_generell', $update_array, ['id' => $rowid]);
|
||||
}
|
||||
|
||||
DbFunction::$projektid = DbFunction::get("tx_gutachten_raume_generell", "pid", ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use HermannTelser\Gutachten\Eid\TxGutachten;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateMethodenProjektFactoren
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// TxGutachten::$debug = 1;
|
||||
|
||||
$_post = GeneralUtility::_GP('data');
|
||||
$_data = json_decode($_post, true);
|
||||
|
||||
|
||||
foreach ($_data as $key => $value) {
|
||||
$factor = str_replace(',', '.', $value['factor']);
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_generell', ['factor' => $factor], ['id' => $value['id']]);
|
||||
}
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateNotizen
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
$value = GeneralUtility::_GP('data');
|
||||
$value = str_replace('"','',$value);
|
||||
$rowid = GeneralUtility::_GP('id');
|
||||
$update_array = [];
|
||||
$update_array['beschreibung'] = $value;
|
||||
|
||||
DbFunction::secureUpdate('tx_gutachten_projekte', $update_array, ['id' => $rowid]);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateOrientierungTypenColums
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$id = GeneralUtility::_GP('id');
|
||||
if (!is_numeric($id)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$coltitel = GeneralUtility::_GP('value');
|
||||
|
||||
$update_array = [];
|
||||
$update_array['coltitel'] = $coltitel;
|
||||
DbFunction::secureUpdate('tx_gutachten_help', $update_array, ['id' => $id]);
|
||||
|
||||
echo 1;
|
||||
exit;
|
||||
|
||||
// $rowdata = GeneralUtility::_GP('rowdata');
|
||||
// $data = json_decode($rowdata, true);
|
||||
// $coltitel = GeneralUtility::_GP('value');
|
||||
//
|
||||
// $rowid = $data['id'];
|
||||
//
|
||||
// if ($rowid > 0) {
|
||||
// $update_array = [];
|
||||
// $update_array['coltitel'] = $coltitel;
|
||||
// DbFunction::secureUpdate('tx_gutachten_help', $update_array, ['id' => $id]);
|
||||
// } elseif ($rowid < 0) {
|
||||
// $arr = DbFunction::select('tx_gutachten_help', 'colid', ['id' => $rowid]);
|
||||
// $tmp = array_diff(range('a', 'u'), $arr);
|
||||
// $character = array_shift($tmp);
|
||||
//
|
||||
// $insert_array = [];
|
||||
// $insert_array['pid'] = $id;
|
||||
// $insert_array['colid'] = $character;
|
||||
// $insert_array['coltitel'] = $coltitel;
|
||||
// DbFunction::secureInsert('tx_gutachten_help', $insert_array);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateProjekt
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
$table = GeneralUtility::_GP('table');
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('id');
|
||||
$update_array = [];
|
||||
$update_array[$field] = $value;
|
||||
DbFunction::secureUpdate($table, $update_array, ['id' => $rowid]);
|
||||
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\Select;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateProjektPlatzhalter
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
$value = GeneralUtility::_GP('value');
|
||||
$rowid = GeneralUtility::_GP('rowid');
|
||||
|
||||
$update_array = [];
|
||||
$update_array['txt'] = $value;
|
||||
|
||||
DbFunction::secureUpdate("tx_gutachten_projekteplatzhalter", $update_array, ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateProjektStandards
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$data = GeneralUtility::_GP('data');
|
||||
$data = json_decode($data, true);
|
||||
$rowid = GeneralUtility::_GP('rowid');
|
||||
|
||||
$update_array = [];
|
||||
foreach ($data as $key => $value) {
|
||||
$update_array = array_merge($update_array, $value);
|
||||
}
|
||||
// $update_array['kennung'] = $update_array['titel'];
|
||||
DbFunction::secureUpdate("tx_gutachten_projektestandards", $update_array, ['id' => $rowid]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
use HermannTelser\Gutachten\Eid\TxGutachten;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class UpdateRaeumeAlleOrientierung
|
||||
{
|
||||
/**
|
||||
* @param mixed $rowid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
// TxGutachten::$debug = 1;
|
||||
|
||||
$projekt_id = 0;
|
||||
|
||||
$_post = GeneralUtility::_GP('data');
|
||||
$_data = json_decode($_post, true);
|
||||
|
||||
$res = DbFunction::select('tx_gutachten_orientierung', ['id', 'orientierung'], ['ORDER' => 'sortierung']);
|
||||
$map = [];
|
||||
foreach ($res as $field => $value) {
|
||||
$map[$value['orientierung']] = $value['id'];
|
||||
}
|
||||
|
||||
$_range = range('a', 'u');
|
||||
foreach ($_data as $key => $value) {
|
||||
$projekt_id = $value['pid'];
|
||||
$raume_basis_id = $value['id'];
|
||||
$update_array = [];
|
||||
foreach ($_range as $key => $col) {
|
||||
$value[$col] = str_replace(',', '.', $value[$col]);
|
||||
$update_array[$col] = (float) $value[$col];
|
||||
}
|
||||
$update_array['tt_orientierung_id'] = $map[$value['orientierung']];
|
||||
$update_array['typ'] = $value['typ'];
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_basis', $update_array, ['id' => $raume_basis_id]);
|
||||
}
|
||||
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_basis', ['noDispInOrientierung' => 0], ['pid' => $projektid]);
|
||||
$res = DbFunction::select('tx_gutachten_raume_all', 'tt_raume_basis_id', ['AND' => ['pid' => $projektid, 'tt_raumart_id' => [5, 6, 9]], 'GROUP' => 'tt_raume_basis_id']);
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_basis', ['noDispInOrientierung' => 1], ['id' => $res]);
|
||||
|
||||
$fields = range('a', 'u');
|
||||
$res = DbFunction::select('tx_gutachten_raume_basis', 'id', ['AND' => ['pid' => $projekt_id, 'noDispInOrientierung' => 0]]);
|
||||
foreach ($res as $key => $raume_basis_id) {
|
||||
$arr = DbFunction::select('tx_gutachten_raume_basis', $fields, ['id' => $raume_basis_id]);
|
||||
$summe = array_sum($arr[0]);
|
||||
$bewertung = 100 + $summe;
|
||||
$factor = $bewertung / 100;
|
||||
|
||||
$update_array = [];
|
||||
$update_array['summe_az'] = $summe;
|
||||
$update_array['bewertung'] = $bewertung;
|
||||
$update_array['factor'] = $factor;
|
||||
DbFunction::secureUpdate('tx_gutachten_raume_basis', $update_array, ['id' => $raume_basis_id]);
|
||||
}
|
||||
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
|
||||
class UpdateRow
|
||||
{
|
||||
/**
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function update()
|
||||
{
|
||||
$table = GeneralUtility::_GP('table');
|
||||
$rowdata = GeneralUtility::_GP('rowdata');
|
||||
$data = json_decode($rowdata, true);
|
||||
$id = GeneralUtility::_GP('id');
|
||||
$update_array = [];
|
||||
foreach ($data as $key => $subdata) {
|
||||
foreach ($subdata as $field => $value) {
|
||||
$update_array[$field] = $value;
|
||||
}
|
||||
}
|
||||
DbFunction::secureUpdate($table, $update_array, "id = $id");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Update;
|
||||
|
||||
use HermannTelser\Gutachten\Utility\Message;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\Berechnungen\Berechnung;
|
||||
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 _UpdateController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$id = GeneralUtility::_GP('id');
|
||||
if($id && is_numeric($id)){
|
||||
DbFunction::query("UPDATE tx_gutachten_projekte SET timestamp = current_timestamp WHERE id=". GeneralUtility::_GP('id'));
|
||||
}
|
||||
|
||||
$arr = [];
|
||||
switch (GeneralUtility::_GP('action')) {
|
||||
// update
|
||||
case 'abgleich_raume_generell':
|
||||
AbgleichRaumeGenerell::update();
|
||||
break;
|
||||
case 'update_projektestandards':
|
||||
UpdateProjektStandards::update();
|
||||
break;
|
||||
case 'update_project_platzhalter':
|
||||
UpdateProjektPlatzhalter::update();
|
||||
// Berechnung::berechnen();
|
||||
break;
|
||||
case 'update_project':
|
||||
UpdateProjekt::update();
|
||||
// Berechnung::berechnen();
|
||||
break;
|
||||
case 'update_notizen':
|
||||
UpdateNotizen::update();
|
||||
// Berechnung::berechnen();
|
||||
break;
|
||||
case 'update_aufstellung':
|
||||
UpdateAufstellung::update();
|
||||
break;
|
||||
case 'update_field':
|
||||
UpdateField::update();
|
||||
break;
|
||||
case 'toggle_field':
|
||||
ToggleField::update();
|
||||
break;
|
||||
case 'update_row':
|
||||
UpdateRow::update();
|
||||
break;
|
||||
case 'update_method_many':
|
||||
UpdateMethodMany::update();
|
||||
Berechnung::berechnen();
|
||||
break;
|
||||
case 'update_austellung_many':
|
||||
UpdateAufstellungMany::update();
|
||||
break;
|
||||
case 'update_method':
|
||||
UpdateMethod::update();
|
||||
Berechnung::berechnen();
|
||||
break;
|
||||
case 'update_allgemein':
|
||||
UpdateAllgemeine::update();
|
||||
break;
|
||||
case 'update_orientierung_typen_colums':
|
||||
UpdateOrientierungTypenColums::update();
|
||||
break;
|
||||
case 'update_raeume_alle_orientierung':
|
||||
UpdateRaeumeAlleOrientierung::update();
|
||||
break;
|
||||
case 'update_methoden_projekt_factoren':
|
||||
UpdateMethodenProjektFactoren::update();
|
||||
break;
|
||||
case 'update_raume_all':
|
||||
UpdateAllgemeineAll::update();
|
||||
break;
|
||||
default:
|
||||
Message::error(
|
||||
__FILE__,
|
||||
__LINE__,
|
||||
'no controller switch defined'
|
||||
);
|
||||
}
|
||||
|
||||
if (null !== GeneralUtility::_GP('berechnen')) {
|
||||
Berechnung::berechnen();
|
||||
}
|
||||
echo 1;
|
||||
exit;
|
||||
|
||||
// header('Content-Type: application/json');
|
||||
// echo json_encode($arr);
|
||||
// exit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user