Test waren doch noch nicht done *smileyface*
This commit is contained in:
@@ -1,23 +1,37 @@
|
||||
<?php
|
||||
//Programmiert von: Max Heer, Getestet von:
|
||||
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
|
||||
|
||||
namespace VPR_Schnittstelle\Controller;
|
||||
namespace ppb\Controller;
|
||||
|
||||
use VPR_Schnittstelle\Libary\Msg;
|
||||
use VPR_Schnittstelle\Model\TagesplanModel;
|
||||
use ppb\Libary\Msg;
|
||||
use ppb\Model\TagesplanModel;
|
||||
|
||||
public function getTagesplan(){
|
||||
$result=$this->db->getTagesplan();
|
||||
class TagesplanController
|
||||
{
|
||||
|
||||
private $db;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->db = new TagesplanModel();
|
||||
}
|
||||
|
||||
public function getTagesplan()
|
||||
{
|
||||
$result = $this->db->getTagesplan();
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function insertTagesplan($data){
|
||||
$result=$this->db->insertTagesplan($data);
|
||||
public function writeTagesplan($data)
|
||||
{
|
||||
$result = $this->db->insertTagesplan($data);
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
public function deleteTagesplan($id){
|
||||
$result=$this->db->deleteTagesplan($id);
|
||||
public function deleteTagesplan($id)
|
||||
{
|
||||
$result = $this->db->deleteTagesplan($id);
|
||||
return json_encode($result);
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user