ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilCalendarExporter.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
21 
29 {
31 
35  public function init(): void
36  {
37  $this->ds = new ilCalendarDataSet();
38  $this->ds->initByExporter($this);
39  $this->ds->setDSPrefix("ds");
40  }
41 
45  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
46  {
47  $this->ds->initByExporter($this);
48  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
49  }
50 
54  public function getValidSchemaVersions(string $a_entity): array
55  {
56  return array(
57  "4.3.0" => array(
58  "namespace" => "http://www.ilias.de/Services/Calendar/cal/4_3",
59  "xsd_file" => "ilias_cal_4_3.xsd",
60  "uses_dataset" => true,
61  "min" => "4.3.0",
62  "max" => ""
63  )
64  );
65  }
66 }
getValidSchemaVersions(string $a_entity)
Exporter class for calendar data (xml)
Calendar data set class.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)