2023-12-20 09:12:15 +01:00
|
|
|
<?php
|
2024-01-14 18:30:05 +01:00
|
|
|
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
|
2023-12-20 09:12:15 +01:00
|
|
|
|
2024-01-14 18:30:05 +01:00
|
|
|
namespace ppb\Controller;
|
2023-12-20 09:12:15 +01:00
|
|
|
|
2024-01-14 18:30:05 +01:00
|
|
|
use ppb\Libary\Msg;
|
|
|
|
use ppb\Model\TagesplanModel;
|
2023-12-20 09:12:15 +01:00
|
|
|
|
2024-01-14 18:30:05 +01:00
|
|
|
class TagesplanController
|
|
|
|
{
|
|
|
|
|
|
|
|
private $db;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->db = new TagesplanModel();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTagesplan()
|
|
|
|
{
|
|
|
|
$result = $this->db->getTagesplan();
|
2023-12-20 09:12:15 +01:00
|
|
|
return json_encode($result);
|
|
|
|
}
|
|
|
|
|
2024-01-14 18:30:05 +01:00
|
|
|
public function writeTagesplan($data)
|
|
|
|
{
|
|
|
|
$result = $this->db->insertTagesplan($data);
|
2023-12-20 09:12:15 +01:00
|
|
|
return json_encode($result);
|
|
|
|
}
|
|
|
|
|
2024-01-14 18:30:05 +01:00
|
|
|
public function deleteTagesplan($id)
|
|
|
|
{
|
|
|
|
$result = $this->db->deleteTagesplan($id);
|
2023-12-20 09:12:15 +01:00
|
|
|
return json_encode($result);
|
|
|
|
}
|
2024-01-18 10:02:29 +01:00
|
|
|
|
|
|
|
public function getGerichteOnTag()
|
|
|
|
{
|
|
|
|
$result = $this->db->getGerichteOnTag();
|
|
|
|
return json_encode($result);
|
|
|
|
}
|
2024-01-14 18:30:05 +01:00
|
|
|
}
|
2023-12-20 09:12:15 +01:00
|
|
|
?>
|