ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilTaxonomyExporter.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/Taxonomy/classes/class.ilTaxonomyDataSet.php");
23 $this->ds = new ilTaxonomyDataSet();
24 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $this->ds->setDSPrefix("ds");
26 }
27
36 function getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
37 {
38 return array();
39 }
40
41
50 function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
51 {
52 return array();
53 }
54
63 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
64 {
65 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
66 }
67
75 function getValidSchemaVersions($a_entity)
76 {
77 return array (
78 "4.3.0" => array(
79 "namespace" => "http://www.ilias.de/Services/Taxonomy/tax/4_3",
80 "xsd_file" => "ilias_tax_4_3.xsd",
81 "uses_dataset" => true,
82 "min" => "4.3.0",
83 "max" => "")
84 );
85 }
86
87}
88
89?>
Taxonomy data set class.
Export class for taxonomies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Xml Exporter class.