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