ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPollExporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected ilPollDataSet $ds;
29
30 public function init(): void
31 {
32 $this->ds = new ilPollDataSet();
33 $this->ds->setDSPrefix("ds");
34 }
35
36 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
37 {
38 $this->ds->initByExporter($this);
39 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
40 }
41
42 public function getValidSchemaVersions(string $a_entity): array
43 {
44 return [
45 "10.0" => [
46 "namespace" => "http://www.ilias.de/Services/Modules/Poll/10_0",
47 "xsd_file" => "ilias_poll_10_0.xsd",
48 "uses_dataset" => true,
49 "min" => "10.0",
50 "max" => ""
51 ],
52 "5.0.0" => [
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" => "9.99"
58 ],
59 "4.3.0" => [
60 "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
61 "xsd_file" => "ilias_poll_4_3.xsd",
62 "uses_dataset" => true,
63 "min" => "4.3.0",
64 "max" => "4.4.99"
65 ]
66 ];
67 }
68}
Poll Dataset class.
Poll export definition.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
Xml Exporter class.