ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4include_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}
$parser
Definition: BPMN2Parser.php:23
An exception for terminatinating execution or to throw for unit testing.
Manifest parser for ILIAS standard export files.
Media Pool Data set class.
Importer class for media pools.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Xml importer class.
getSchemaVersion()
Get schema version.
getImport()
Get import.
getImportDirectory()
Get import directory.