ILIAS  release_4-4 Revision
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" => "")
40  );
41  }
42 
43 }
44 ?>
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
getValidSchemaVersions($a_entity)
Poll export definition.
Xml Exporter class.
Poll Dataset class.