ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilSessionExporter.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("./Modules/Session/classes/class.ilSessionDataSet.php");
23 $this->ds = new ilSessionDataSet();
24 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $this->ds->setDSPrefix("ds");
26 }
27
28
37 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
38 {
39 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
40 }
41
49 function getValidSchemaVersions($a_entity)
50 {
51 return array (
52 "4.1.0" => array(
53 "namespace" => "http://www.ilias.de/Modules/Session/sess/4_1",
54 "xsd_file" => "ilias_sess_4_1.xsd",
55 "uses_dataset" => true,
56 "min" => "4.1.0",
57 "max" => "4.4.999"),
58 "5.0.0" => array(
59 "namespace" => "http://www.ilias.de/Modules/Session/sess/5_0",
60 "xsd_file" => "ilias_sess_5_0.xsd",
61 "uses_dataset" => true,
62 "min" => "5.0.0",
63 "max" => "")
64 );
65 }
66
67}
68
69?>
Session data set class.
Exporter class for sessions.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Xml Exporter class.