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,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]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user