ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilPollExporter.php
Go to the documentation of this file.
1 <?php
2 
20 declare(strict_types=1);
21 
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->initByExporter($this);
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 [
46  "10.0" => [
47  "namespace" => "http://www.ilias.de/Services/Modules/Poll/10_0",
48  "xsd_file" => "ilias_poll_10_0.xsd",
49  "uses_dataset" => true,
50  "min" => "10.0",
51  "max" => ""
52  ],
53  "5.0.0" => [
54  "namespace" => "http://www.ilias.de/Services/Modules/Poll/5_0",
55  "xsd_file" => "ilias_poll_5_0.xsd",
56  "uses_dataset" => true,
57  "min" => "5.0.0",
58  "max" => "9.99"
59  ],
60  "4.3.0" => [
61  "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
62  "xsd_file" => "ilias_poll_4_3.xsd",
63  "uses_dataset" => true,
64  "min" => "4.3.0",
65  "max" => "4.4.99"
66  ]
67  ];
68  }
69 }
getValidSchemaVersions(string $a_entity)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Poll export definition.
Poll Dataset class.