ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilSkillExporter.php
Go to the documentation of this file.
1 <?php
2 
20 declare(strict_types=1);
21 
28 {
31 
32  public function init(): void
33  {
34  $this->ds = new ilSkillDataSet();
35  $this->ds->initByExporter($this);
36  $this->ds->setDSPrefix("ds");
38  $config = $this->getExport()->getExportConfigs()->getElementByComponent('components/ILIAS/Skill');
39  $this->config = $config;
40  $this->ds->setSelectedNodes($this->config->getSelectedNodes());
41  $this->ds->setSelectedProfiles($this->config->getSelectedProfiles());
42  $this->ds->setMode($this->config->getMode());
43  $this->ds->setSkillTreeId($this->config->getSkillTreeId());
44  }
45 
49  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
50  {
51  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
52  }
53 
57  public function getValidSchemaVersions(string $a_entity): array
58  {
59  return array(
60  "8.0" => array(
61  "namespace" => "http://www.ilias.de/Services/Skill/skll/8_0",
62  "xsd_file" => "ilias_skll_8_0.xsd",
63  "uses_dataset" => true,
64  "min" => "8.0",
65  "max" => ""),
66  "7.0" => array(
67  "namespace" => "http://www.ilias.de/Services/Skill/skll/7_0",
68  "xsd_file" => "ilias_skll_7_0.xsd",
69  "uses_dataset" => true,
70  "min" => "7.0",
71  "max" => ""),
72  "5.1.0" => array(
73  "namespace" => "http://www.ilias.de/Services/Skill/skll/5_1",
74  "xsd_file" => "ilias_skll_5_1.xsd",
75  "uses_dataset" => true,
76  "min" => "5.1.0",
77  "max" => "")
78  );
79  }
80 }
getValidSchemaVersions(string $a_entity)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Skill Data set class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exporter class for skills.
ilSkillExportConfig $config