From 9c919b8264946835ab78f38f9f3c225de3af888b Mon Sep 17 00:00:00 2001 From: Martin Gauk <gauk@math.tu-berlin.de> Date: Mon, 16 Dec 2019 15:31:06 +0000 Subject: [PATCH] Delete course step: delete waiting courses The delete course step should override the process_waiting_course function in order to process waiting courses correctly. --- step/deletecourse/lib.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/step/deletecourse/lib.php b/step/deletecourse/lib.php index bf14d91..2480cf2 100644 --- a/step/deletecourse/lib.php +++ b/step/deletecourse/lib.php @@ -66,6 +66,21 @@ class deletecourse extends libbase { return step_response::proceed(); } + /** + * Processes the course in status waiting and returns a repsonse. + * The response tells either + * - that the subplugin is finished processing. + * - that the subplugin is not yet finished processing. + * - that a rollback for this course is necessary. + * @param int $processid of the respective process. + * @param int $instanceid of the step instance. + * @param mixed $course to be processed. + * @return step_response + */ + public function process_waiting_course($processid, $instanceid, $course) { + return $this->process_course($processid, $instanceid, $course); + } + /** * The return value should be equivalent with the name of the subplugin folder. * @return string technical name of the subplugin -- GitLab