ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCalendarExporter.php
Go to the documentation of this file.
1<?php
2
19declare(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}
Calendar data set class.
Exporter class for calendar data (xml)
getValidSchemaVersions(string $a_entity)
@inheritDoc
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
@inheritDoc
Xml Exporter class.