/** * It's used for delete attendaces * render to attendance_list view * @param int attendance id */ public function attendance_delete($attendance_id) { $allowDeleteAttendance = api_get_setting('attendance.allow_delete_attendance'); if ($allowDeleteAttendance !== 'true') { $this->attendance_list(); return false; } $attendance = new Attendance(); if (!empty($attendance_id)) { $affected_rows = $attendance->attendance_delete($attendance_id); } if ($affected_rows) { $message['message_attendance_delete'] = true; } $this->attendance_list(); }
/** * It's used for delete attendaces * render to attendance_list view * @param int attendance id */ public function attendance_delete($attendance_id) { $attendance = new Attendance(); if (!empty($attendance_id)) { $affected_rows = $attendance->attendance_delete($attendance_id); } if ($affected_rows) { $message['message_attendance_delete'] = true; } $this->attendance_list(); }
/** * It's used for delete attendaces * render to attendance_list view * @param int attendance id */ public function attendance_delete($attendance_id) { $allowDeleteAttendance = api_get_configuration_value('allow_delete_attendance'); if ($allowDeleteAttendance == false) { $this->attendance_list(); return false; } $attendance = new Attendance(); if (!empty($attendance_id)) { $affected_rows = $attendance->attendance_delete($attendance_id); } if ($affected_rows) { $message['message_attendance_delete'] = true; } $this->attendance_list(); }