VPR_Schnittstelle/Controller/TagesplanController.php

43 lines
836 B
PHP
Raw Permalink Normal View History

2023-12-20 09:12:15 +01:00
<?php
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
2023-12-20 09:12:15 +01:00
namespace ppb\Controller;
2023-12-20 09:12:15 +01:00
use ppb\Libary\Msg;
use ppb\Model\TagesplanModel;
2023-12-20 09:12:15 +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);
}
public function writeTagesplan($data)
{
$result = $this->db->insertTagesplan($data);
2023-12-20 09:12:15 +01:00
return json_encode($result);
}
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);
}
}
2023-12-20 09:12:15 +01:00
?>