diff --git a/Layout/default/TimerecordingHoliday/Form.php b/Layout/default/TimerecordingHoliday/Form.php
new file mode 100644
index 000000000..538cf7ebf
--- /dev/null
+++ b/Layout/default/TimerecordingHoliday/Form.php
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+ - ">= MFAPPNAME_SLUG ?>
+
+ - ">Feiertage
+ - = ($timerecordingholidays->id) ? "bearbeiten" : "Neu" ?>
+
+
+
+
= ($timerecordingholidays->id) ? "Feiertag bearbeiten" : "Neuer Feiertag" ?>
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Layout/default/TimerecordingHoliday/Index.php b/Layout/default/TimerecordingHoliday/Index.php
new file mode 100644
index 000000000..aa3e88512
--- /dev/null
+++ b/Layout/default/TimerecordingHoliday/Index.php
@@ -0,0 +1,105 @@
+
+
+ $timerecordingholiday->timestamp,
+// 'description' => '$timerecordingholiday->description',
+// 'create_by' => $timerecordingholiday->create_by,
+// 'edit_by' => $timerecordingholiday->edit_by,
+// 'create' => $timerecordingholiday->create,
+// 'edit' => $timerecordingholiday->edit
+// ],
+// ";
+//
+//endforeach;
+//echo "]";
+//?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Layout/default/menu.php b/Layout/default/menu.php
index 831cb3181..08026235e 100644
--- a/Layout/default/menu.php
+++ b/Layout/default/menu.php
@@ -34,9 +34,11 @@
diff --git a/application/TimerecordingHoliday/TimerecordingHoliday.php b/application/TimerecordingHoliday/TimerecordingHoliday.php
new file mode 100644
index 000000000..6fd5759b7
--- /dev/null
+++ b/application/TimerecordingHoliday/TimerecordingHoliday.php
@@ -0,0 +1,59 @@
+$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;
+}
+
+}
\ No newline at end of file
diff --git a/application/TimerecordingHoliday/TimerecordingHolidayController.php b/application/TimerecordingHoliday/TimerecordingHolidayController.php
new file mode 100644
index 000000000..742f38cf7
--- /dev/null
+++ b/application/TimerecordingHoliday/TimerecordingHolidayController.php
@@ -0,0 +1,127 @@
+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");
+ }
+
+}
diff --git a/application/TimerecordingHoliday/TimerecordingHolidayModel.php b/application/TimerecordingHoliday/TimerecordingHolidayModel.php
new file mode 100644
index 000000000..4644696f0
--- /dev/null
+++ b/application/TimerecordingHoliday/TimerecordingHolidayModel.php
@@ -0,0 +1,126 @@
+ $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;
+ }
+
+}
diff --git a/db/migrations/20240112114633_timerecording_employee.php b/db/migrations/20240112114633_timerecording_employee.php
new file mode 100644
index 000000000..52f32d224
--- /dev/null
+++ b/db/migrations/20240112114633_timerecording_employee.php
@@ -0,0 +1,36 @@
+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") {
+
+ }
+ }
+}
diff --git a/db/migrations/20240112114732_timerecording_employee_working_hour.php b/db/migrations/20240112114732_timerecording_employee_working_hour.php
new file mode 100644
index 000000000..ce41efe40
--- /dev/null
+++ b/db/migrations/20240112114732_timerecording_employee_working_hour.php
@@ -0,0 +1,38 @@
+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") {
+
+ }
+ }
+}
diff --git a/db/migrations/20240112115131_timerecording_holiday.php b/db/migrations/20240112115131_timerecording_holiday.php
new file mode 100644
index 000000000..7ee038fcb
--- /dev/null
+++ b/db/migrations/20240112115131_timerecording_holiday.php
@@ -0,0 +1,36 @@
+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") {
+
+ }
+ }
+}
diff --git a/db/migrations/20240112120622_logging_communication.php b/db/migrations/20240112120622_logging_communication.php
new file mode 100644
index 000000000..1cad41637
--- /dev/null
+++ b/db/migrations/20240112120622_logging_communication.php
@@ -0,0 +1,38 @@
+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") {
+
+ }
+ }
+}
diff --git a/db/migrations/20240114115926_insert_timerecording_holiday.php b/db/migrations/20240114115926_insert_timerecording_holiday.php
new file mode 100644
index 000000000..fbb754115
--- /dev/null
+++ b/db/migrations/20240114115926_insert_timerecording_holiday.php
@@ -0,0 +1,968 @@
+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") {
+
+ }
+ }
+}