Files
gutachten_t3/packages/gutachten/Classes/DB/Select/ProjekteSetStatus.php
T

30 lines
677 B
PHP

<?php
namespace HermannTelser\Gutachten\DB\Select;
use HermannTelser\Gutachten\DB\DbFunction;
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>
*
***/
class ProjekteSetStatus
{
public static function set()
{
$id = GeneralUtility::_GP('id');
$value = GeneralUtility::_GP('value');
DbFunction::secureUpdate('tx_gutachten_projekte', ['value' => $value], ['id' => $id]);
echo $value;
exit;
}
}