mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
portfolio MDL-21034 add extra leap2a metadata to forum export
This commit is contained in:
parent
2822f40ae2
commit
b2488578dc
1 changed files with 3 additions and 1 deletions
|
@ -180,7 +180,9 @@ class forum_portfolio_caller extends portfolio_module_caller_base {
|
||||||
if ($this->attachment) { // simplest case first - single file attachment
|
if ($this->attachment) { // simplest case first - single file attachment
|
||||||
$this->copy_files(array($this->singlefile), $this->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
|
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');
|
$entry->add_category('offline', 'resource_type');
|
||||||
$leapwriter->add_entry($entry);
|
$leapwriter->add_entry($entry);
|
||||||
return $this->exporter->write_new_file($leapwriter->to_xml(), $this->exporter->get('format')->manifest_name(), true);
|
return $this->exporter->write_new_file($leapwriter->to_xml(), $this->exporter->get('format')->manifest_name(), true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue