VPR_Schnittstelle/Controller/TagesplanController.php
2024-01-18 10:02:29 +01:00

43 lines
836 B
PHP

<?php
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
namespace ppb\Controller;
use ppb\Libary\Msg;
use ppb\Model\TagesplanModel;
class TagesplanController
{
private $db;
public function __construct()
{
$this->db = new TagesplanModel();
}
public function getTagesplan()
{
$result = $this->db->getTagesplan();
return json_encode($result);
}
public function writeTagesplan($data)
{
$result = $this->db->insertTagesplan($data);
return json_encode($result);
}
public function deleteTagesplan($id)
{
$result = $this->db->deleteTagesplan($id);
return json_encode($result);
}
public function getGerichteOnTag()
{
$result = $this->db->getGerichteOnTag();
return json_encode($result);
}
}
?>