ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_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
49}
50?>
Poll Dataset class.
Poll export definition.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
Xml Exporter class.