ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  public 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  $this->ds->setUsePreviousImportIds(true);
33  }
34  }
35 
42  public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
43  {
44  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
46  $a_entity,
47  $this->getSchemaVersion(),
48  $a_xml,
49  $this->ds,
50  $a_mapping
51  );
52  }
53 }
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:23
Xml importer class.