ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 include_once("./Services/Export/classes/class.ilXmlImporter.php");
5 
14 {
15  protected $ds;
16 
20  public 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  public 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");
38  $a_entity,
39  $this->getSchemaVersion(),
40  $a_xml,
41  $this->ds,
42  $a_mapping
43  );
44  }
45 }
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
Importer class for poll.
Manifest parser for ILIAS standard export files.
init()
Initialisation.
$parser
Definition: BPMN2Parser.php:23
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Poll Dataset class.
Xml importer class.