mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
portfolio MDL-21034 add extra leap2a metadata to forum export
This commit is contained in:
parent
2822f40ae2
commit
b2488578dc
@ -180,7 +180,9 @@ class forum_portfolio_caller extends portfolio_module_caller_base {
|
||||
if ($this->attachment) { // simplest case first - single file attachment
|
||||
$this->copy_files(array($this->singlefile), $this->attachment);
|
||||
if ($writingleap) { // if we're writing leap, make the manifest to go along with the file
|
||||
$entry = new portfolio_format_leap2a_entry($id, $this->attachment->get_filename(), 'resource', $this->attachment);
|
||||
$entry = new portfolio_format_leap2a_entry('forumattachment' . $this->singlefile->get_id(), $this->singlefile->get_filename(), 'resource', $this->single
|
||||
$entry->published = $this->singlefile->get_timecreated();
|
||||
$entry->updated = $this->singlefile->get_timemodified();
|
||||
$entry->add_category('offline', 'resource_type');
|
||||
$leapwriter->add_entry($entry);
|
||||
return $this->exporter->write_new_file($leapwriter->to_xml(), $this->exporter->get('format')->manifest_name(), true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user