ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSkillExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Export/classes/class.ilXmlExporter.php");
5
14{
15 private $ds;
16
20 function init()
21 {
22 include_once("./Services/Skill/classes/class.ilSkillDataSet.php");
23 $this->ds = new ilSkillDataSet();
24 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $this->ds->setDSPrefix("ds");
26 $this->config = $this->getExport()->getConfig("Services/Skill");
27 $this->ds->setSelectedNodes($this->config->getSelectedNodes());
28 $this->ds->setSelectedProfiles($this->config->getSelectedProfiles());
29 $this->ds->setMode($this->config->getMode());
30 }
31
32
41 function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
42 {
43 $deps = array();
44 /*$deps = array (
45 array(
46 "component" => "Services/COPage",
47 "entity" => "pg",
48 "ids" => $pg_ids),
49 array(
50 "component" => "Services/Rating",
51 "entity" => "rating_category",
52 "ids" => $a_ids
53 )
54 );*/
55
56 return $deps;
57 }
58
67 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
68 {
69 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
70 }
71
79 function getValidSchemaVersions($a_entity)
80 {
81 return array (
82 "5.1.0" => array(
83 "namespace" => "http://www.ilias.de/Services/Skill/skll/5_1",
84 "xsd_file" => "ilias_skll_5_1.xsd",
85 "uses_dataset" => true,
86 "min" => "5.1.0",
87 "max" => "")
88 );
89 }
90
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.