ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 public 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 public 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 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
54 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
55 }
56
64 public function getValidSchemaVersions($a_entity)
65 {
66 return array(
67 "5.4.0" => array(
68 "namespace" => "http://www.ilias.de/Services/Object/obj/5_4",
69 "xsd_file" => "ilias_obj_5_4.xsd",
70 "uses_dataset" => true,
71 "min" => "5.4.0",
72 "max" => ""),
73 "5.1.0" => array(
74 "namespace" => "http://www.ilias.de/Services/Object/obj/5_1",
75 "xsd_file" => "ilias_obj_5_1.xsd",
76 "uses_dataset" => true,
77 "min" => "5.1.0",
78 "max" => "5.3.99"),
79 "4.4.0" => array(
80 "namespace" => "http://www.ilias.de/Services/Object/obj/4_4",
81 "xsd_file" => "ilias_obj_4_4.xsd",
82 "uses_dataset" => true,
83 "min" => "4.4.0",
84 "max" => "5.0.99")
85 );
86 }
87}
An exception for terminatinating execution or to throw for unit testing.
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.