44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Zuladungsliste\Berechnung;
|
|
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
use TYPO3\CMS\Core\Database\ConnectionPool;
|
|
use HermannTelser\Zuladungsliste\Utilities\Message;
|
|
|
|
/***
|
|
*
|
|
* This file is part of the "Zuladungsliste Steiermark" 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 Solidaritaetserklaerung
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public static function filter($_liste, $user_objekt)
|
|
{
|
|
if (_Berechnung::$debug) {
|
|
Message::debug(__file__, __line__, "Filter Solidaritaetserklaerung");
|
|
}
|
|
// Datum Start SOLIDARITÄTSERKLÄRUNG ab 15. Juni "2021"
|
|
if (_Berechnung::$_config['berechne_bis'] == 0 or _Berechnung::$_config['berechne_bis'] > mktime(0, 0, 0, 6, 15, 2021)) {
|
|
if ($user_objekt["solidaritaetserklaerung"]==0) {
|
|
$_liste["auswertung"]["solidaritaetserklaerung"]["kommentar"] = "Solidaritätserklärung nicht zugestimmt";
|
|
$_liste["auswertung"]["solidaritaetserklaerung"]["punkte"] = 0;
|
|
} else {
|
|
$_liste["auswertung"]["solidaritaetserklaerung"]["kommentar"] = "Solidaritätserklärung zugestimmt";
|
|
$_liste["auswertung"]["solidaritaetserklaerung"]["punkte"] = 1;
|
|
$_liste["punkte"]++;
|
|
}
|
|
}
|
|
return $_liste;
|
|
}
|
|
}
|