ILIAS  release_8 Revision v8.24
class.ilPollExporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
28{
29 protected ilPollDataSet $ds;
30
31 public function init(): void
32 {
33 $this->ds = new ilPollDataSet();
34 $this->ds->setDSPrefix("ds");
35 }
36
37 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
38 {
39 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
40 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
41 }
42
43 public function getValidSchemaVersions(string $a_entity): array
44 {
45 return array(
46 "4.3.0" => array(
47 "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
48 "xsd_file" => "ilias_poll_4_3.xsd",
49 "uses_dataset" => true,
50 "min" => "4.3.0",
51 "max" => "4.4.99"),
52 "5.0.0" => array(
53 "namespace" => "http://www.ilias.de/Services/Modules/Poll/5_0",
54 "xsd_file" => "ilias_poll_5_0.xsd",
55 "uses_dataset" => true,
56 "min" => "5.0.0",
57 "max" => "")
58 );
59 }
60}
Poll Dataset class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...