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,44 @@
|
||||
<?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 AddToTable
|
||||
{
|
||||
public static function create()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$table = GeneralUtility::_GP('table');
|
||||
if (!$table) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$field = GeneralUtility::_GP('field');
|
||||
$value = GeneralUtility::_GP('value');
|
||||
|
||||
if($field and $value){
|
||||
$insert_array = [];
|
||||
$insert_array[$field] = $value;
|
||||
DbFunction::secureInsert($table, $insert_array);
|
||||
}
|
||||
else {
|
||||
DbFunction::secureInsert($table);
|
||||
}
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user