Tests bis zu Gericht Model
This commit is contained in:
1 parent
4b11857f6d
commit
c47abaf4bb
3 files changed
+43
-35
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
//Programmiert von: Max Heer, Getestet von:
|
||||
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
|
||||
|
||||
namespace ppb\Controller;
|
||||
|
||||
@@ -16,13 +16,13 @@ class EnthaeltController
|
||||
$this->db = new EnthaeltModel();
|
||||
}
|
||||
|
||||
public function getInhaltsstoffe($gerichtId)
|
||||
public function getEnthaelt($gerichtId)
|
||||
{
|
||||
$result = $this->db->getEnthaelt($gerichtId);
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function insertEnthaelt($data)
|
||||
public function writeEnthaelt($data)
|
||||
{
|
||||
$result = $this->db->insertEnthaelt($data);
|
||||
return json_encode($result);
|
||||
|
||||
Reference in new issue
Block a user