2023-12-06 08:53:48 +01:00
|
|
|
<?php
|
|
|
|
//Programmiert von: Max Heer, Getestet von:
|
|
|
|
|
2023-12-06 09:26:20 +01:00
|
|
|
namespace VPR_Schnittstelle\Controller;
|
2023-12-06 08:53:48 +01:00
|
|
|
|
2023-12-06 09:26:20 +01:00
|
|
|
use VPR_Schnittstelle\Libary\Msg;
|
|
|
|
use VPR_Schnittstelle\Model\EnthaeltModel;
|
2023-12-06 08:53:48 +01:00
|
|
|
|
|
|
|
class EnthaeltController(){
|
|
|
|
public function getInhaltsstoffe($gerichtId){
|
|
|
|
$result=$this->db->getEnthaelt($gerichtId);
|
|
|
|
return json_encode($result);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function insertEnthaelt($data){
|
|
|
|
$result=$this->db->insertEnthaelt($data);
|
|
|
|
return json_encode($result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|