ILIAS  release_8 Revision v8.24
class.ilCalendarExporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
5
13{
15
19 public function init(): void
20 {
21 $this->ds = new ilCalendarDataSet();
22 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
23 $this->ds->setDSPrefix("ds");
24 }
25
29 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
30 {
31 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
32 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
33 }
34
38 public function getValidSchemaVersions(string $a_entity): array
39 {
40 return array(
41 "4.3.0" => array(
42 "namespace" => "http://www.ilias.de/Services/Calendar/cal/4_3",
43 "xsd_file" => "ilias_cal_4_3.xsd",
44 "uses_dataset" => true,
45 "min" => "4.3.0",
46 "max" => ""
47 )
48 );
49 }
50}
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...