Actions

Difference between revisions of "Developer Area/Import//Export/LEAP Export/File Artefact Plugin"

From Mahara Wiki

< Developer Area‎ | Import//Export‎ | LEAP Export
Line 1: Line 1:
http://wiki.mahara.org/Developer_Area/Import%2f%2fExport/LEAP_Export
 
http://wiki.cetis.ac.uk/2009-03/LEAP2A_types#resource
 
http://wiki.cetis.ac.uk/2009-03/LEAP2A_categories/resource_type#Offline
 
http://wiki.cetis.ac.uk/2009-03/LEAP2A_relationships#relation
 
http://wiki.cetis.ac.uk/2009-03/LEAP2A_types#selection
 
http://wiki.cetis.ac.uk/2009-03/LEAP2A_categories/selection_type#Folder
 
http://git.mahara.org/?p=mahara.git;a=blob;f=htdocs/artefact/file/export/leap/lib.php;hb=HEAD
 
http://wiki.mahara.org/Developer_Area/Import%2f%2fExport/LEAP_Import/File_Artefact_Plugin
 
 
The file artefact plugin hooks into the [[Developer Area/Import%2f%2fExport/LEAP Export|LEAP export system]] to export files, folders, images and profile icons (which are technically treated differently to images in Mahara). This plugin just overrides LeapExportElement for the file, folder, image and profileicon artefact types.
 
The file artefact plugin hooks into the [[Developer Area/Import%2f%2fExport/LEAP Export|LEAP export system]] to export files, folders, images and profile icons (which are technically treated differently to images in Mahara). This plugin just overrides LeapExportElement for the file, folder, image and profileicon artefact types.
  

Revision as of 18:16, 12 May 2011

The file artefact plugin hooks into the LEAP export system to export files, folders, images and profile icons (which are technically treated differently to images in Mahara). This plugin just overrides LeapExportElement for the file, folder, image and profileicon artefact types.

Files & Images

These are exported as LEAP2A resources of resource_type:Offline, with the following customisations:

  • Anything the file is attached to is added as a link of type is_attachment_of (this is subject to change - is_attachment_of is not a valid LEAP2A relationship)
  • The file is always exported out of line, even if it has an html or xhtml content type

Profile Icons

These are exported exactly how Files & Images are exported, with the addition of one link of type related to the persondata element for the export, to signify that it is a profile icon. This convention was agreed on by the mailing list, but isn't part of the standard. It's likely a future version of the LEAP2A standard will add a 'depicts'/'is_depiction_of' relationship to assist with this.

Folders

These are exported as LEAP2A selections of selection_type:Folder.