mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-68665 assignfeedback_editpdf: Coding style fixes
This commit is contained in:
parent
814ec28fef
commit
36419cf8d5
@ -64,12 +64,13 @@ class assign_feedback_editpdf extends assign_feedback_plugin {
|
|||||||
$grade = $this->assignment->get_user_grade($userid, true);
|
$grade = $this->assignment->get_user_grade($userid, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$feedbackfile = document_services::get_feedback_document($this->assignment->get_instance()->id,
|
$feedbackfile = document_services::get_feedback_document(
|
||||||
$userid,
|
$this->assignment->get_instance()->id,
|
||||||
$attempt);
|
$userid,
|
||||||
|
$attempt
|
||||||
|
);
|
||||||
|
|
||||||
$stampfiles = array();
|
$stampfiles = array();
|
||||||
$systemfiles = array();
|
|
||||||
$fs = get_file_storage();
|
$fs = get_file_storage();
|
||||||
$syscontext = context_system::instance();
|
$syscontext = context_system::instance();
|
||||||
$asscontext = $this->assignment->get_context();
|
$asscontext = $this->assignment->get_context();
|
||||||
@ -153,24 +154,27 @@ class assign_feedback_editpdf extends assign_feedback_plugin {
|
|||||||
$url = false;
|
$url = false;
|
||||||
$filename = '';
|
$filename = '';
|
||||||
if ($feedbackfile) {
|
if ($feedbackfile) {
|
||||||
$url = moodle_url::make_pluginfile_url($this->assignment->get_context()->id,
|
$url = moodle_url::make_pluginfile_url(
|
||||||
'assignfeedback_editpdf',
|
$this->assignment->get_context()->id,
|
||||||
document_services::FINAL_PDF_FILEAREA,
|
'assignfeedback_editpdf',
|
||||||
$grade->id,
|
document_services::FINAL_PDF_FILEAREA,
|
||||||
'/',
|
$grade->id,
|
||||||
$feedbackfile->get_filename(),
|
'/',
|
||||||
false);
|
$feedbackfile->get_filename(),
|
||||||
|
false
|
||||||
|
);
|
||||||
$filename = $feedbackfile->get_filename();
|
$filename = $feedbackfile->get_filename();
|
||||||
}
|
}
|
||||||
|
|
||||||
$widget = new assignfeedback_editpdf_widget($this->assignment->get_instance()->id,
|
$widget = new assignfeedback_editpdf_widget(
|
||||||
$userid,
|
$this->assignment->get_instance()->id,
|
||||||
$attempt,
|
$userid,
|
||||||
$url,
|
$attempt,
|
||||||
$filename,
|
$url,
|
||||||
$stampfiles,
|
$filename,
|
||||||
$readonly
|
$stampfiles,
|
||||||
);
|
$readonly
|
||||||
|
);
|
||||||
return $widget;
|
return $widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user