Fixes
This commit is contained in:
@@ -8,30 +8,34 @@ namespace ppb\Controller;
|
||||
use ppb\Library\Msg;
|
||||
use ppb\Model\BenutzerModel;
|
||||
|
||||
class BenutzerController{
|
||||
class BenutzerController
|
||||
{
|
||||
|
||||
private $db;
|
||||
|
||||
public function __construct(){
|
||||
public function __construct()
|
||||
{
|
||||
$this->db = new BenutzerModel();
|
||||
}
|
||||
|
||||
// Updated einen Benutzer
|
||||
public function updateBenutzer($elternId, $data){
|
||||
public function updateBenutzer($elternId, $data)
|
||||
{
|
||||
|
||||
$result = $this->db->updateBenutzer($benutzerId, $data);
|
||||
$result = $this->db->updateBenutzer($elternId, $data);
|
||||
|
||||
return json_encode($result);
|
||||
|
||||
}
|
||||
|
||||
// Fügt einen Benutzer in die Datenbank hinzu
|
||||
public function insertBenutzer($data){
|
||||
$result = $this->db->insertBenutzer($data)
|
||||
public function insertBenutzer($data)
|
||||
{
|
||||
$result = $this->db->insertBenutzer($data);
|
||||
|
||||
return json_encode($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user