Tests bis zu Gericht Model
This commit is contained in:
@@ -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