@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
//Programmiert von: Max Heer, Getestet von:
|
||||
|
||||
namespace kindergartenverwaltung\Controller;
|
||||
namespace VPR_Schnittstelle\Controller;
|
||||
|
||||
use kindergartenverwaltung\Libary\Msg;
|
||||
use kindergartenverwaltung\Model\EnthaeltModel;
|
||||
use VPR_Schnittstelle\Libary\Msg;
|
||||
use VPR_Schnittstelle\Model\EnthaeltModel;
|
||||
|
||||
class EnthaeltController(){
|
||||
public function getInhaltsstoffe($gerichtId){
|
||||
@@ -16,5 +16,10 @@
|
||||
$result=$this->db->insertEnthaelt($data);
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function deleteEnthaelt($id){
|
||||
$result=$this->db->deleteEnthaelt($id);
|
||||
return json_encode($result);
|
||||
}
|
||||
}
|
||||
?>
|
23
Controller/InhaltsstoffController.php
Normal file
23
Controller/InhaltsstoffController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
//Programmiert von: Max Heer, Getestet von:
|
||||
|
||||
namespace VPR_Schnittstelle\Controller;
|
||||
|
||||
use VPR_Schnittstelle\Libary\Msg;
|
||||
use VPR_Schnittstelle\Model\InhaltsstoffModel;
|
||||
|
||||
public function getInhaltsstoff(){
|
||||
$result=$this->db->getInhaltsstoff();
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function insertInhaltsstoff($data){
|
||||
$result=$this->db->insertInhaltsstoff($data);
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function deleteInhaltsstoff($id){
|
||||
$result=$this->db->deleteInhaltsstoff($id);
|
||||
return json_encode($result);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user