ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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->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 [
46  "5.0.0" => [
47  "namespace" => "http://www.ilias.de/Services/Modules/Poll/5_0",
48  "xsd_file" => "ilias_poll_5_0.xsd",
49  "uses_dataset" => true,
50  "min" => "5.0.0",
51  "max" => ""
52  ],
53  "4.3.0" => [
54  "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
55  "xsd_file" => "ilias_poll_4_3.xsd",
56  "uses_dataset" => true,
57  "min" => "4.3.0",
58  "max" => "4.4.99"
59  ]
60  ];
61  }
62 }
getValidSchemaVersions(string $a_entity)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Poll export definition.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Poll Dataset class.