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,33 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Insert;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
|
||||
/***
|
||||
*
|
||||
* 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 AddAuftraggeber
|
||||
{
|
||||
public static function add()
|
||||
{
|
||||
$data = json_decode(GeneralUtility::_GP('data'));
|
||||
$insert_array = [];
|
||||
foreach ($data as $key => $value) {
|
||||
$key = str_replace('2', '', $key);
|
||||
$insert_array[$key] = $value;
|
||||
}
|
||||
DbFunction::secureInsert('tx_gutachten_auftraggeber', $insert_array);
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Insert;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use HermannTelser\Gutachten\DB\DbFunction;
|
||||
|
||||
/***
|
||||
*
|
||||
* 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 AddGutachter
|
||||
{
|
||||
public static function add()
|
||||
{
|
||||
$data = json_decode(GeneralUtility::_GP('data'));
|
||||
$insert_array = [];
|
||||
foreach ($data as $key => $value) {
|
||||
$key = str_replace('1', '', $key);
|
||||
$insert_array[$key] = $value;
|
||||
}
|
||||
DbFunction::secureInsert('tx_gutachten_gutachter', $insert_array);
|
||||
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?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 AddMerkmal
|
||||
{
|
||||
public static function create()
|
||||
{
|
||||
// DbFunction::$debug = 1;
|
||||
|
||||
$projektid = GeneralUtility::_GP('projektid');
|
||||
if (!$projektid) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$colid = DbFunction::get('tx_gutachten_help', 'colid', ['pid' => $projektid, 'ORDER' => ['colid' => 'DESC']]);
|
||||
if (!$colid) {
|
||||
$colid = 'a';
|
||||
} else {
|
||||
++$colid;
|
||||
}
|
||||
|
||||
$insert_array = [];
|
||||
$insert_array['pid'] = $projektid;
|
||||
$insert_array['colid'] = $colid;
|
||||
$insert_array['coltitel'] = 'Neues Merkmal';
|
||||
DbFunction::secureInsert('tx_gutachten_help', $insert_array);
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace HermannTelser\Gutachten\DB\Insert;
|
||||
|
||||
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 _InsertController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$arr = [];
|
||||
switch (GeneralUtility::_GP('action')) {
|
||||
// Auftraggeber
|
||||
case 'auftraggeber_neu':
|
||||
AddAuftraggeber::add();
|
||||
break;
|
||||
|
||||
// Gutachter
|
||||
case 'gutachter_neu':
|
||||
AddGutachter::add();
|
||||
break;
|
||||
// any table
|
||||
case 'neues_projekt':
|
||||
NewProjekt::create();
|
||||
break;
|
||||
case 'neues_merkmal':
|
||||
AddMerkmal::create();
|
||||
break;
|
||||
case 'neues_element':
|
||||
AddToTable::create();
|
||||
break;
|
||||
default:
|
||||
Message::error(
|
||||
__FILE__,
|
||||
__LINE__,
|
||||
'no controller switch defined'
|
||||
);
|
||||
}
|
||||
|
||||
if (null !== GeneralUtility::_GP('berechnen')) {
|
||||
Berechnung::berechnen();
|
||||
}
|
||||
echo 1;
|
||||
exit;
|
||||
|
||||
// header('Content-Type: application/json');
|
||||
// echo json_encode($arr);
|
||||
// exit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user