portfolio MDL-21034 add extra leap2a metadata to forum export

This commit is contained in:
Penny Leach 2010-03-22 14:34:15 +00:00
parent 2822f40ae2
commit b2488578dc

View File

@ -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);