32 lines
652 B
PHP
32 lines
652 B
PHP
<?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;
|
|
}
|
|
}
|