39 lines
899 B
PHP
39 lines
899 B
PHP
<?php
|
|
|
|
namespace HermannTelser\Gutachten\DB\Insert;
|
|
|
|
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>, NUH-Odds GmbH
|
|
*
|
|
***/
|
|
|
|
class NewProjekt
|
|
{
|
|
public static function create()
|
|
{
|
|
$internername = GeneralUtility::_GP('internername');
|
|
$projektname = GeneralUtility::_GP('projektname');
|
|
|
|
if($internername!="" and $projektname != "")
|
|
{
|
|
$value_array = [];
|
|
$value_array['intname'] = $internername;
|
|
$value_array['name'] = $projektname;
|
|
$value_array['erstelldatum'] = time();
|
|
DbFunction::secureInsert("tx_gutachten_projekte", $value_array);
|
|
}
|
|
|
|
echo 1;
|
|
exit;
|
|
}
|
|
}
|