ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilScormAiccExporter Class Reference
+ Inheritance diagram for ilScormAiccExporter:
+ Collaboration diagram for ilScormAiccExporter:

Public Member Functions

 __construct ()
 Constructor. More...
 
 init ()
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

Definition at line 4 of file class.ilScormAiccExporter.php.

Constructor & Destructor Documentation

◆ __construct()

ilScormAiccExporter::__construct ( )

Constructor.

Parameters

return

Reimplemented from ilXmlExporter.

Definition at line 6 of file class.ilScormAiccExporter.php.

7 {
8 include_once("./Modules/ScormAicc/classes/class.ilScormAiccDataSet.php");
9 $this->dataset = new ilScormAiccDataSet();
10 }

Member Function Documentation

◆ getValidSchemaVersions()

ilScormAiccExporter::getValidSchemaVersions (   $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example:

            return array (
    "4.1.0" => array(
            "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1",
            "xsd_file" => "ilias_md_4_1.xsd",
            "min" => "4.1.0",
            "max" => "")
    );
Returns
array

Reimplemented from ilXmlExporter.

Definition at line 34 of file class.ilScormAiccExporter.php.

35 {
36 return array(
37 "5.1.0" => array(
38 "namespace" => "http://www.ilias.de/Modules/ScormAicc/sahs/5_1",
39 "xsd_file" => "xml/ilias_sahs_5_1.xsd",
40 "uses_dataset" => true,
41 "min" => "5.1.0",
42 "max" => "")
43 );
44 }

◆ getXmlRepresentation()

ilScormAiccExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml representation.

Parameters
stringentity
stringschema version
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

Definition at line 16 of file class.ilScormAiccExporter.php.

17 {
18 include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
19 $lm = new ilObjSAHSLearningModule($a_id, false);
20 if ($lm->getEditable()) { // fix #0022063 (export authoring scorm lm)
21 include_once("./Modules/Scorm2004/classes/class.ilScorm2004DataSet.php");
22 $dataset = new ilScorm2004DataSet();
23 $dataset->setDSPrefix("ds");
24 $dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $dataset->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
26 } else {
27 $this->dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
28 //using own getXmlRepresentation function in ilScormAiccDataSet
29 $this->dataset->getExtendedXmlRepresentation($a_entity, $a_schema_version, $a_id, "", false, true);
30 }
31 }
Class ilObjSCORMLearningModule.

◆ init()

ilScormAiccExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 12 of file class.ilScormAiccExporter.php.

13 {
14 }

The documentation for this class was generated from the following file: