ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilScormAiccExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3include_once("./Services/Export/classes/class.ilXmlExporter.php");
5{
6 public function __construct()
7 {
8 include_once("./Modules/ScormAicc/classes/class.ilScormAiccDataSet.php");
9 $this->dataset = new ilScormAiccDataSet();
10 }
11
12 function init()
13 {
14 }
15
16 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
17 {
18 $this->dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
19 //using own getXmlRepresentation function in ilScormAiccDataSet
20 return $this->dataset->getExtendedXmlRepresentation($a_entity, $a_schema_version, $a_id, "", false, true);
21 }
22
23 //todo:check if xsd files must be provided
24 function getValidSchemaVersions($a_entity)
25 {
26 return array (
27 "5.1.0" => array(
28 "namespace" => "http://www.ilias.de/Modules/ScormAicc/sahs/5_1",
29 "xsd_file" => "xml/ilias_sahs_5_1.xsd",
30 "uses_dataset" => true,
31 "min" => "5.1.0",
32 "max" => "")
33 );
34 }
35
36/*
37 public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
38 {
39 $md_ids = array();
40 $md_ids[0] = "0:".$mob_id.":mob";
41
42 return array (
43 array(
44 "component" => "Modules/ScormAicc",
45 "entity" => "md",
46 "ids" => $md_ids)
47 );
48 }
49*/
50
51}
52?>
An exception for terminatinating execution or to throw for unit testing.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
Xml Exporter class.