ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilPollExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Export/classes/class.ilXmlExporter.php';
5 
15 {
16  protected $ds;
17 
18  public function init()
19  {
20  include_once("./Modules/Poll/classes/class.ilPollDataSet.php");
21  $this->ds = new ilPollDataSet();
22  $this->ds->setDSPrefix("ds");
23  }
24 
25  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
26  {
27  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
28  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
29  }
30 
31  public function getValidSchemaVersions($a_entity)
32  {
33  return array(
34  "4.3.0" => array(
35  "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
36  "xsd_file" => "ilias_poll_4_3.xsd",
37  "uses_dataset" => true,
38  "min" => "4.3.0",
39  "max" => "4.4.99"),
40  "5.0.0" => array(
41  "namespace" => "http://www.ilias.de/Services/Modules/Poll/5_0",
42  "xsd_file" => "ilias_poll_5_0.xsd",
43  "uses_dataset" => true,
44  "min" => "5.0.0",
45  "max" => "")
46  );
47  }
48 }
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
getValidSchemaVersions($a_entity)
Poll export definition.
Xml Exporter class.
Create styles array
The data for the language used.
Poll Dataset class.