ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilCalendarExporter.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
27 {
29 
33  public function init(): void
34  {
35  $this->ds = new ilCalendarDataSet();
36  $this->ds->initByExporter($this);
37  $this->ds->setDSPrefix("ds");
38  }
39 
43  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
44  {
45  $this->ds->initByExporter($this);
46  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
47  }
48 
52  public function getValidSchemaVersions(string $a_entity): array
53  {
54  return array(
55  "4.3.0" => array(
56  "namespace" => "http://www.ilias.de/Services/Calendar/cal/4_3",
57  "xsd_file" => "ilias_cal_4_3.xsd",
58  "uses_dataset" => true,
59  "min" => "4.3.0",
60  "max" => ""
61  )
62  );
63  }
64 }
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)