TestsDone

This commit is contained in:
2024-01-14 17:51:11 +01:00
parent c47abaf4bb
commit 215ddf86cb
5 changed files with 95 additions and 44 deletions

View File

@@ -1,21 +1,40 @@
<?php
// Erstellt durch Stefan Groß
namespace kinderverwaltung\Controller;
// Erstellt durch Stefan Groß - Nicht getestet
namespace ppb\Controller;
class istTeilController {
use ppb\Model\IstTeilModel;
class istTeilController
{
private $db;
public function __construct()
{
$this-> db = new istTeilModel();
$this->db = new istTeilModel();
}
public function getBestellung(){
$result = $this->db->getBestellung();
public function getIstTeil()
{
$result = $this->db->selectIstTeil();
return json_encode($result);
}
public function writeIstTeil($data)
{
$result = $this->db->insertIstTeil($data);
return json_encode($result);
}
public function deleteIstTeil($id)
{
$result = $this->db->deleteIstTeil($id);
return json_encode($result);
}
}
?>
?>