ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 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?>
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.