ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSkillExporter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
12{
13 private $ds;
14
18 public function init()
19 {
20 $this->ds = new ilSkillDataSet();
21 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
22 $this->ds->setDSPrefix("ds");
23 $this->config = $this->getExport()->getConfig("Services/Skill");
24 $this->ds->setSelectedNodes($this->config->getSelectedNodes());
25 $this->ds->setSelectedProfiles($this->config->getSelectedProfiles());
26 $this->ds->setMode($this->config->getMode());
27 }
28
29
38 public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
39 {
40 $deps = array();
41 /*$deps = array (
42 array(
43 "component" => "Services/COPage",
44 "entity" => "pg",
45 "ids" => $pg_ids),
46 array(
47 "component" => "Services/Rating",
48 "entity" => "rating_category",
49 "ids" => $a_ids
50 )
51 );*/
52
53 return $deps;
54 }
55
64 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
65 {
66 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
67 }
68
76 public function getValidSchemaVersions($a_entity)
77 {
78 return array(
79 "7.0" => array(
80 "namespace" => "http://www.ilias.de/Services/Skill/skll/7_0",
81 "xsd_file" => "ilias_skll_7_0.xsd",
82 "uses_dataset" => true,
83 "min" => "7.0",
84 "max" => ""),
85 "5.1.0" => array(
86 "namespace" => "http://www.ilias.de/Services/Skill/skll/5_1",
87 "xsd_file" => "ilias_skll_5_1.xsd",
88 "uses_dataset" => true,
89 "min" => "5.1.0",
90 "max" => "")
91 );
92 }
93}
An exception for terminatinating execution or to throw for unit testing.
Skill Data set class.
Exporter class for skills.
init()
Initialisation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
Xml Exporter class.
getExport()
Get export.