MDL-15762 log portfolio transfers and notify the user when there are dups
This commit is contained in:
@@ -269,6 +269,19 @@ class assignment_online extends assignment_base {
|
||||
function portfolio_exportable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
function portfolio_get_sha1() {
|
||||
$submission = $this->get_submission();
|
||||
return sha1(format_text($submission->data1, $submission->data2));
|
||||
}
|
||||
|
||||
function portfolio_prepare_package($tempdir) {
|
||||
$submission = $this->get_submission();
|
||||
$handle = fopen($tempdir . '/assignment.html', 'w');
|
||||
$status = $handle && fwrite($handle, format_text($submission->data1, $submission->data2));
|
||||
$status = $status && fclose($handle);
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
||||
class mod_assignment_online_edit_form extends moodleform {
|
||||
|
||||
Reference in New Issue
Block a user