ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilScormAiccExporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
24
25 public function __construct()
26 {
28 $this->dataset = new ilScormAiccDataSet();
29 }
30
31 public function init(): void
32 {
33 }
34
35 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
36 {
37 $this->dataset->initByExporter($this);
38 //using own getXmlRepresentation function in ilScormAiccDataSet
39 return $this->dataset->getExtendedXmlRepresentation( $this->getExport()->export_run_dir, $a_entity, $a_schema_version, [ $a_id ], "", false, true );
40 }
41 //todo:check if xsd files must be provided
42
46 public function getValidSchemaVersions(string $a_entity): array
47 {
48 return array(
49 "5.1.0" => array(
50 "namespace" => "http://www.ilias.de/Modules/ScormAicc/sahs/5_1",
51 "xsd_file" => "xml/ilias_sahs_5_1.xsd",
52 "uses_dataset" => true,
53 "min" => "5.1.0",
54 "max" => "")
55 );
56 }
57
58 // public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
59 // {
60 // $md_ids = array();
61 // $md_ids[0] = "0:".$mob_id.":mob";
62 //
63 // return array (
64 // array(
65 // "component" => "components/ILIAS/ScormAicc",
66 // "entity" => "md",
67 // "ids" => $md_ids)
68 // );
69 // }
70}
getValidSchemaVersions(string $a_entity)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Xml Exporter class.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc