ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilPollImporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Export/classes/class.ilXmlImporter.php");
5
14{
15 protected $ds;
16
20 function init()
21 {
22 include_once("./Modules/Poll/classes/class.ilPollDataSet.php");
23 $this->ds = new ilPollDataSet();
24 $this->ds->setDSPrefix("ds");
25 }
26
33 function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
34 {
35 $this->ds->setImportDirectory($this->getImportDirectory());
36 include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
37 $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
38 $a_xml, $this->ds, $a_mapping);
39 }
40}
41
42?>
Manifest parser for ILIAS standard export files.
Poll Dataset class.
Importer class for poll.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
init()
Initialisation.
Xml importer class.
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.