db = new TagesplanModel(); } public function getTagesplan() { $result = $this->db->getTagesplan(); return json_encode($result); } public function writeTagesplan($data) { $result = $this->db->insertTagesplan($data); return json_encode($result); } public function deleteTagesplan($id) { $result = $this->db->deleteTagesplan($id); return json_encode($result); } public function getGerichteOnTag() { $result = $this->db->getGerichteOnTag(); return json_encode($result); } } ?>