Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39760: mod_assign: Make submit_for_grading accept submission as p…

…arameter.
  • Loading branch information...
commit c07c4324c725a01d35e4553cb08111c202dd7927 1 parent f5dd4b4
@kabalin kabalin authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  mod/assign/locallib.php
  2. +3 −1 mod/assign/submissionplugin.php
View
2  mod/assign/locallib.php
@@ -3590,7 +3590,7 @@ private function process_submit_for_grading($mform) {
// Give each submission plugin a chance to process the submission
$plugins = $this->get_submission_plugins();
foreach ($plugins as $plugin) {
- $plugin->submit_for_grading();
+ $plugin->submit_for_grading($submission);
}
$submission->status = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
View
4 mod/assign/submissionplugin.php
@@ -69,9 +69,11 @@ public function precheck_submission() {
/**
* Carry out any extra processing required when the work is submitted for grading
+ *
+ * @param stdClass $submission - assign_submission data
* @return void
*/
- public function submit_for_grading() {
+ public function submit_for_grading(stdClass $submission) {
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.