ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 include_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  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
54  }
55 
63  public 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 }
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Object data set class.
Xml Exporter class.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
init()
Initialisation.
Create styles array
The data for the language used.
Exporter class for object related data (please note that title and description are usually included i...
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.