28 lines
632 B
PHP
28 lines
632 B
PHP
<?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;
|
|
}
|
|
}
|