Zeiterfassung Urlaubstage

neue Migrations

Vorbereitung für Logging von versendeten SMSen und Mails zweck rate Limit
This commit is contained in:
Spitzer Daniel
2024-01-14 13:16:54 +01:00
parent a4aaea2fb0
commit c779a533b2
11 changed files with 1620 additions and 1 deletions

View File

@@ -0,0 +1,84 @@
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
<link href="<?= self::getResourcePath() ?>assets/css/select2-cstm.css?<?= date('U') ?>" rel="stylesheet"
type="text/css"/>
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box">
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
</li>
<li class="breadcrumb-item"><a
href="<?= self::getUrl("TimerecordingHoliday") ?>">Feiertage</a></li>
<li class="breadcrumb-item active"><?= ($timerecordingholidays->id) ? "bearbeiten" : "Neu" ?></li>
</ol>
</div>
<h4 class="page-title"><?= ($timerecordingholidays->id) ? "Feiertag bearbeiten" : "Neuer Feiertag" ?></h4>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-lg-12">
<div class="card bg-light">
<div class="card-body">
<h4 class="header-title mb-2"><?= ($timerecordingholidays->id) ? "Feiertag bearbeiten" : "Neuer Feiertag" ?></h4>
<form class="form-horizontal" method="post"
action="<?= self::getUrl("TimerecordingHoliday", "save") ?>">
<div class="card no-shadow">
<div class="card-body">
<input type="hidden" name="id" value="<?= $timerecordingholidays->id ?>"/>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="timestamp">Datum *</label>
<div class="col-lg-3">
<input required="required" type="date" id="timestamp" name="timestamp" class="form-control"
value="<?= date("Y-m-d",$timerecordingholidays->timestamp) ?>"/>
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="description">Name *</label>
<div class="col-lg-3">
<input required="required" type="text" id="description" name="description" class="form-control"
value="<?= $timerecordingholidays->description ?>"/>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-lg-2"></label>
<div class="col-lg-10">
<button type="submit" class="btn btn-primary">Speichern</button>
<a href="<?= self::getUrl("TimerecordingHoliday") ?>">
<button type="button" class="btn btn-secondary">Abbrechen</button>
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(".select2").select2({placeholder: ""});
// disable mousewheel on a input number field when in focus
$('form').on('focus', 'input[type=number]', function (e) {
$(this).on('wheel.disableScroll', function (e) {
e.preventDefault()
})
});
$('form').on('blur', 'input[type=number]', function (e) {
$(this).off('wheel.disableScroll')
});
</script>
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>

View File

@@ -0,0 +1,105 @@
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
<?php
//echo "[
//";
//foreach ($timerecordingholidays as $timerecordingholiday):
//
//
//echo "[
// 'timestamp' => $timerecordingholiday->timestamp,
// 'description' => '$timerecordingholiday->description',
// 'create_by' => $timerecordingholiday->create_by,
// 'edit_by' => $timerecordingholiday->edit_by,
// 'create' => $timerecordingholiday->create,
// 'edit' => $timerecordingholiday->edit
// ],
// ";
//
//endforeach;
//echo "]";
//?>
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
type="text/css"/>
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box">
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
</li>
<li class="breadcrumb-item active">Feiertage</li>
</ol>
</div>
<h4 class="page-title">Feiertage</h4>
</div>
</div>
</div>
<!-- end page title -->
<div class="card">
<div class="card-body mb-3">
<div class="row">
<div class="col-12">
<div class="float-left">
<h4 class="header-title">Liste aller Feiertage</h4>
</div>
<div class="float-right">
<a class="btn btn-primary mb-2" href="<?= self::getUrl("TimerecordingHoliday", "add") ?>"><i
class="fas fa-plus"></i> Neuen Feiertag anlegen</a>
</div>
</div>
</div>
<table id="datatable" class="table table-striped table-hover table-sm">
<thead>
<tr>
<th class="text-center">Datum</th>
<th class="text-center">Name</th>
<th class="edit-width"></th>
</tr>
<tr id="filterrow">
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($timerecordingholidays as $timerecordingholiday): ?>
<tr>
<td data-order="<?= $timerecordingholiday->timestamp ?>"><?= date("d.m.Y", $timerecordingholiday->timestamp) ?></td>
<td><?= $timerecordingholiday->description ?></td>
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
<a href="<?= self::getUrl("TimerecordingHoliday", "edit", ["id" => $timerecordingholiday->id]) ?>"><i
class="far fa-edit" title="Bearbeiten"></i></a>
<a href="<?= self::getUrl("TimerecordingHoliday", "delete", ["id" => $timerecordingholiday->id]) ?>"
onclick="if(!confirm('Feiertag wirklich löschen?')) return false;" class="text-danger"
title="Löschen"><i class="fas fa-trash"></i></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var hidesearch = [2];
$(document).ready(function () {
});
</script>
<script type="text/javascript"
src="<?= self::getResourcePath() ?>assets/js/datatables-std.js?<?= date('U') ?>"></script>
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>

View File

@@ -34,9 +34,11 @@
<ul class="submenu">
<li><a href="<?=self::getUrl("Timerecording")?>"><i class="far fa-fw fa-calendar text-info"></i> Buchungen</a></li>
<?php if ($me->can('Fibu')): ?>
<li><a href="<?=self::getUrl("TimerecordingCategory")?>"><i class="far fa-fw fa-list text-info"></i> Buchungsarten</a></li>
<li><a href="<?=self::getUrl("TimerecordingPermit")?>"><i class="far fa-fw fa-calendar-check text-info"></i> Freigaben</a></li>
<li><a href="<?=self::getUrl("TimerecordingReport")?>"><i class="far fa-fw fa-chart-pie text-info"></i> Auswertungen</a></li>
<li><a href="<?=self::getUrl("TimerecordingCategory")?>"><i class="far fa-fw fa-list text-info"></i> Buchungsarten</a></li>
<li><a href="<?=self::getUrl("TimerecordingHoliday")?>"><i class="far fa-fw fa-umbrella-beach text-info"></i> Feiertage</a></li>
<li><a href="<?=self::getUrl("TimerecordingEmployee")?>"><i class="far fa-fw fa-user text-info"></i> Personaladministration</a></li>
<?php endif; ?>
</ul>
</li>

View File

@@ -0,0 +1,59 @@
<?php
class TimerecordingHoliday extends mfBaseModel
{
private $editor;
private $creator;
public function getProperty($name)
{
if ($this->$name == null) {
if (!$this->id) {
return null;
}
if ($name == "creator") {
$this->creator = mfValuecache::singleton()->get("Worker-id-" . $this->create_by);
if ($this->creator === null) {
$this->creator = new User($this->create_by);
if ($this->creator->id) {
mfValuecache::singleton()->set("Worker-id-" . $this->create_by, $this->creator);
}
}
return $this->creator;
}
if ($name == "editor") {
$this->editor = mfValuecache::singleton()->get("Worker-id-" . $this->edit_by);
if ($this->editor === null) {
$this->editor = new User($this->edit_by);
if ($this->editor->id) {
mfValuecache::singleton()->set("Worker-id-" . $this->edit_by, $this->editor);
}
}
return $this->editor;
}
$classname = ucfirst($name);
$idfield = $name . "_id";
$this->$name = mfValuecache::singleton()->get("mfObjectmodel-$name-" . $this->$idfield);
if (!$this->$name) {
$this->$name = new $classname($this->$idfield);
}
if ($this->$name->id) {
mfValuecache::singleton()->set("mfObjectmodel-$name-" . $this->$name->id, $this->$name);
return $this->$name;
} else {
return null;
}
}
return $this->$name;
}
}

View File

@@ -0,0 +1,127 @@
<?php
class TimerecordingHolidayController extends mfBaseController
{
protected function init()
{
$this->needlogin = true;
$me = new User();
$me->loadMe();
$this->me = $me;
$this->layout()->set("me", $me);
if (!$me->is(["Admin"])) {
$this->redirect("Dashboard");
}
}
protected function indexAction()
{
$this->layout()->setTemplate("TimerecordingHoliday/Index");
$timerecordingholidays = TimerecordingHolidayModel::getAll();
$this->layout()->set("timerecordingholidays", $timerecordingholidays);
}
protected function addAction()
{
$this->layout()->setTemplate("TimerecordingHoliday/Form");
}
protected function editAction()
{
$id = $this->request->id;
if (!is_numeric($id) || !$id) {
$this->layout()->setFlash("Feiertag nicht gefunden", "error");
$this->redirect("TimerecordingHoliday");
}
$timerecordingholidays = new TimerecordingHoliday($id);
if ($timerecordingholidays->id != $id) {
$this->layout()->setFlash("Feiertag nicht gefunden", "error");
$this->redirect("TimerecordingHoliday");
}
$this->layout()->set("timerecordingholidays", $timerecordingholidays);
return $this->addAction();
}
protected function saveAction()
{
$r = $this->request;
$id = $r->id;
//var_dump($r->get());exit;
if (is_numeric($id) && $id > 0) {
$mode = "edit";
$timerecordingholidays = new TimerecordingHoliday($id);
if (!$timerecordingholidays->id) {
$this->layout()->setFlash("Feiertage nicht gefunden", "error");
$this->redirect("TimerecordingHoliday");
}
} else {
$mode = "add";
}
$data = [];
$data['timestamp'] = trim($r->timestamp);
$data['description'] = trim($r->description);
if (!$data['timestamp']) {
$this->layout()->setFlash("Datum darf nicht leer sein", "error");
$this->redirect("TimerecordingHoliday");
}
if (!$data['description']) {
$this->layout()->setFlash("Name darf nicht leer sein", "error");
$this->redirect("TimerecordingHoliday");
}
// var_dump($_FILES);
// var_dump($upload);
// exit;
if ($mode == "edit") {
$timerecordingholidays->update($data);
} else {
$timerecordingholidays = TimerecordingHolidayModel::create($data);
}
// var_dump($filestore);
// exit;
$id = $timerecordingholidays->save();
if (!$id) {
$this->layout()->setFlash("Feiertag konnte nicht angelegt werden", "error");
$this->redirect("TimerecordingHoliday");
}
if ($mode == "edit") {
$this->layout()->setFlash("Feiertag erfolgreich geändert", "success");
} else if ($mode = "add") {
$this->layout()->setFlash("Feiertag erfolgreich angelegt", "success");
}
$this->redirect("TimerecordingHoliday");
}
protected function deleteAction()
{
$id = $this->request->id;
$timerecordingholidays = new TimerecordingHoliday($id);
if (!$timerecordingholidays->id || $timerecordingholidays->id != $id) {
$this->layout()->setFlash("Feiertag nicht gefunden.", "error");
$this->redirect("TimerecordingHoliday");
}
$timerecordingholidays->delete();
$this->redirect("TimerecordingHoliday");
}
}

View File

@@ -0,0 +1,126 @@
<?php
class TimerecordingHolidayModel
{
private $timestamp;
private $description;
public static function find($data)
{
}
public static function create(array $data)
{
$model = new TimerecordingHoliday();
foreach ($data as $field => $value) {
if (property_exists(get_called_class(), $field)) {
if (substr($field, 0, 5) == "vlan_" && !$value) {
$model->$field = null;
continue;
}
$model->$field = $value;
}
}
$me = mfValuecache::singleton()->get("me");
if (!$me) {
$me = new User();
$me->loadMe();
mfValuecache::singleton()->set("me", $me);
}
if ($model->create_by === null) {
$model->create_by = $me->id;
}
if ($model->edit_by === null) {
$model->edit_by = $me->id;
}
return $model;
}
public static function getOne($id)
{
if (!is_numeric($id) || !$id) {
throw new Exception("Invalid number", 400);
}
$item = [];
$db = FronkDB::singleton();
$res = $db->select("TimerecordingHoliday", "*", "id=$id LIMIT 1");
if ($db->num_rows($res)) {
$data = $db->fetch_object($res);
$item = new TimerecordingHoliday($data);
}
return $item;
}
public static function getAll()
{
$items = [];
$db = FronkDB::singleton();
$res = $db->select("TimerecordingHoliday", "*", "1=1");
if ($db->num_rows($res)) {
while ($data = $db->fetch_object($res)) {
$items[] = new TimerecordingHoliday($data);
}
}
return $items;
}
public static function getFirst()
{
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
$res = $db->select("TimerecordingHoliday", "*", "$where ");
if ($db->num_rows($res)) {
$data = $db->fetch_object($res);
$item = new TimerecordingHoliday($data);
if ($item->id) {
return $item;
} else {
return null;
}
}
return null;
}
public static function search($filter)
{
$items = [];
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
$res = $db->select("TimerecordingHoliday", "*", "$where");
if ($db->num_rows($res)) {
while ($data = $db->fetch_object($res)) {
$items[] = new TimerecordingHoliday($data);
}
}
return $items;
}
private static function getSqlFilter($filter)
{
$where = "1=1 ";
//var_dump($filter);exit;
if (array_key_exists("network_id", $filter)) {
$networkid = $filter['network_id'];
if (is_numeric($networkid)) {
$where .= " AND network_id=$networkid";
}
}
//var_dump($filter, $where);exit;
return $where;
}
}

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingEmployee extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployee", ["signed" => true]);
$table->addColumn("user_id", "integer", ["null" => false]);
$table->addColumn("auto_workinghours", "integer", ["null" => false, "default" => "0"]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("TimerecordingEmployee")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}

View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingEmployeeWorkingHour extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployeeWorkingHour", ["signed" => true]);
$table->addColumn("user_id", "integer", ["null" => false]);
$table->addColumn("day", "integer", ["null" => false]);
$table->addColumn("start", "string", ["null" => false, "limit" => 64]);
$table->addColumn("end", "string", ["null" => false, "limit" => 64]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingEmployeeWorkingHour")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingHoliday extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingHoliday", ["signed" => true]);
$table->addColumn("timestamp", "integer", ["null" => false]);
$table->addColumn("description", "text", ["null" => false]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingHoliday")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}

View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class LoggingCommunication extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("LoggingCommunication", ["signed" => true]);
$table->addColumn("type", "integer", ["null" => false, "comment" => "1:Mail/2:SMS"]);
$table->addColumn("recipient", "text", ["null" => true]);
$table->addColumn("message", "text", ["null" => true]);
$table->addColumn("response", "text", ["null" => true]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("LoggingCommunication")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}

View File

@@ -0,0 +1,968 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class InsertTimerecordingHoliday extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$rows=[
[
'timestamp' => 1704063600,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1704495600,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1711922400,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1714514400,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1715205600,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1716156000,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1717020000,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1723672800,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1729893600,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1730415600,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1733612400,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1735081200,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1735167600,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1735686000,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1736118000,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1745186400,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1746050400,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1748469600,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1749420000,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1750284000,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1755208800,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1761429600,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1761951600,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1765148400,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1766617200,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1766703600,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1767222000,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1767654000,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1775426400,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1777586400,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1778709600,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1779660000,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1780524000,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1786744800,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1792969200,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1793487600,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1796684400,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1798153200,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1798239600,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1798758000,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1799190000,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1806271200,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1809122400,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1809554400,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1810504800,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1811368800,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1818280800,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1824501600,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1825023600,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1828220400,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1829689200,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1829775600,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1830294000,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1830726000,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1839535200,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1840744800,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1842818400,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1843768800,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1844632800,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1849903200,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1856124000,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1856646000,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1859842800,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1861311600,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1861398000,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1861916400,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1862348400,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1869775200,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1872280800,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1873058400,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1874008800,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1874872800,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1881439200,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1887660000,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1888182000,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1891378800,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1892847600,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1892934000,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1893452400,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1893884400,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1903039200,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1903816800,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1906322400,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1907272800,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1908136800,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1912975200,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1919196000,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1919718000,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1922914800,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1924383600,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1924470000,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1924988400,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1925420400,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1933884000,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1935352800,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1937167200,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1938117600,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1938981600,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1944511200,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1950732000,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1951254000,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1954450800,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1955919600,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1956006000,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1956524400,
'description' => 'Neujahr',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1956956400,
'description' => 'Heilige Drei Könige',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1964124000,
'description' => 'Ostermontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1966975200,
'description' => 'Staatsfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1967407200,
'description' => 'Christi Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1968357600,
'description' => 'Pfingstmontag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1969221600,
'description' => 'Fronleichnam',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1976133600,
'description' => 'Mariä Himmelfahrt',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1982354400,
'description' => 'Nationalfeiertag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1982876400,
'description' => 'Allerheiligen',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1986073200,
'description' => 'Maria Empfängnis',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1987542000,
'description' => 'Christtag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
[
'timestamp' => 1987628400,
'description' => 'Stefanitag',
'create_by' => 1,
'edit_by' => 1,
'create' => 1705051720,
'edit' => 1705051720
],
];
$this->table('TimerecordingHoliday')->insert($rows)->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->execute('DELETE FROM TimerecordingHoliday');
}
if($this->getEnvironment() == "addressdb") {
}
}
}