ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilCalendarExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Export/classes/class.ilXmlExporter.php");
5 
14 {
15  private $ds;
16 
20  function init()
21  {
22  include_once("./Services/Calendar/classes/class.ilCalendarDataSet.php");
23  $this->ds = new ilCalendarDataSet();
24  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25  $this->ds->setDSPrefix("ds");
26  }
27 
36  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
37  {
38  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
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.3.0" => array(
53  "namespace" => "http://www.ilias.de/Services/Calendar/cal/4_3",
54  "xsd_file" => "ilias_cal_4_3.xsd",
55  "uses_dataset" => true,
56  "min" => "4.3.0",
57  "max" => "")
58  );
59  }
60 
61 
62 }
63 
64 ?>