TestsDone
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user