/** * Handles when changes are submited to a schedule/edit * */ public function editSave() { $schedule_model = $this->loadModel('Schedule'); $exam = new Exam(); $exam->setId($_POST['examId']); $exam->setLocation($_POST['textLocation']); $exam->setDate($_POST['textDate']); $exam->setTime($_POST['textTime']); $schedule_model->editExam($exam); }