ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilScormAiccExporter.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 {
23 
24  public function __construct()
25  {
26  $this->dataset = new ilScormAiccDataSet();
27  }
28 
29  public function init(): void
30  {
31  }
32 
33  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
34  {
35  $this->dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
36  //using own getXmlRepresentation function in ilScormAiccDataSet
37  return $this->dataset->getExtendedXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", false, true);
38  }
39  //todo:check if xsd files must be provided
40 
44  public function getValidSchemaVersions(string $a_entity): array
45  {
46  return array(
47  "5.1.0" => array(
48  "namespace" => "http://www.ilias.de/Modules/ScormAicc/sahs/5_1",
49  "xsd_file" => "xml/ilias_sahs_5_1.xsd",
50  "uses_dataset" => true,
51  "min" => "5.1.0",
52  "max" => "")
53  );
54  }
55 
56  // public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
57  // {
58  // $md_ids = array();
59  // $md_ids[0] = "0:".$mob_id.":mob";
60  //
61  // return array (
62  // array(
63  // "component" => "Modules/ScormAicc",
64  // "entity" => "md",
65  // "ids" => $md_ids)
66  // );
67  // }
68 
69 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getValidSchemaVersions(string $a_entity)