ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
36  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
37  {
38  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
39  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
40  $a_xml, $this->ds, $a_mapping);
41  }
42 
43 }
44 
45 ?>