ILIAS  release_8 Revision v8.24
class.ilSkillExporter.php
Go to the documentation of this file.
1<?php
2
27{
30
31 public function init(): void
32 {
33 $this->ds = new ilSkillDataSet();
34 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
35 $this->ds->setDSPrefix("ds");
36 $this->config = $this->getExport()->getConfig("Services/Skill");
37 $this->ds->setSelectedNodes($this->config->getSelectedNodes());
38 $this->ds->setSelectedProfiles($this->config->getSelectedProfiles());
39 $this->ds->setMode($this->config->getMode());
40 $this->ds->setSkillTreeId($this->config->getSkillTreeId());
41 }
42
46 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
47 {
48 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
49 }
50
54 public function getValidSchemaVersions(string $a_entity): array
55 {
56 return array(
57 "8.0" => array(
58 "namespace" => "http://www.ilias.de/Services/Skill/skll/8_0",
59 "xsd_file" => "ilias_skll_8_0.xsd",
60 "uses_dataset" => true,
61 "min" => "8.0",
62 "max" => ""),
63 "7.0" => array(
64 "namespace" => "http://www.ilias.de/Services/Skill/skll/7_0",
65 "xsd_file" => "ilias_skll_7_0.xsd",
66 "uses_dataset" => true,
67 "min" => "7.0",
68 "max" => ""),
69 "5.1.0" => array(
70 "namespace" => "http://www.ilias.de/Services/Skill/skll/5_1",
71 "xsd_file" => "ilias_skll_5_1.xsd",
72 "uses_dataset" => true,
73 "min" => "5.1.0",
74 "max" => "")
75 );
76 }
77}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Skill Data set class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.ILIAS chooses the first one,...
ilExportConfig $config
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...