ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMediaObjectsImporter.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 
22  function init()
23  {
24  include_once("./Services/MediaObjects/classes/class.ilMediaObjectDataSet.php");
25  $this->ds = new ilMediaObjectDataSet();
26  $this->ds->setDSPrefix("ds");
27  $this->ds->setImportDirectory($this->getImportDirectory());
28 
29 
30  $this->config = $this->getImport()->getConfig("Services/MediaObjects");
31  if ($this->config->getUsePreviousImportIds())
32  {
33  $this->ds->setUsePreviousImportIds(true);
34  }
35  }
36 
43  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
44  {
45  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
46  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
47  $a_xml, $this->ds, $a_mapping);
48  }
49 
50 }
51 
52 ?>
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
getSchemaVersion()
Get schema version.
Importer class for media pools.
getImportDirectory()
Get import directory.
Manifest parser for ILIAS standard export files.
getImport()
Get import.
Media Pool Data set class.
$parser
Definition: BPMN2Parser.php:24
Xml importer class.