ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjectExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Export/classes/class.ilXmlExporter.php");
5
16{
17 private $ds;
18
22 function init()
23 {
24 include_once("./Services/Object/classes/class.ilObjectDataSet.php");
25 $this->ds = new ilObjectDataSet();
26 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
27 $this->ds->setDSPrefix("ds");
28 }
29
38 function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
39 {
40 return array();
41 }
42
51 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
52 {
53 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
54 }
55
63 function getValidSchemaVersions($a_entity)
64 {
65 return array (
66 "4.4.0" => array(
67 "namespace" => "http://www.ilias.de/Services/Object/obj/4_4",
68 "xsd_file" => "ilias_obj_4_4.xsd",
69 "uses_dataset" => true,
70 "min" => "4.4.0",
71 "max" => "5.0.99"),
72 "5.1.0" => array(
73 "namespace" => "http://www.ilias.de/Services/Object/obj/5_1",
74 "xsd_file" => "ilias_obj_5_1.xsd",
75 "uses_dataset" => true,
76 "min" => "5.1.0",
77 "max" => "")
78
79 );
80 }
81
82}
83
84?>
Object data set class.
Exporter class for object related data (please note that title and description are usually included i...
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
Xml Exporter class.