ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaObjectsImporter.php
Go to the documentation of this file.
1<?php
2
25{
28
29 public function init(): void
30 {
31 $this->ds = new ilMediaObjectDataSet();
32 $this->ds->setDSPrefix("ds");
33 $this->ds->setImportDirectory($this->getImportDirectory());
34
35 $this->config = $this->getImport()->getConfig("components/ILIAS/MediaObjects");
36 if ($this->config->getUsePreviousImportIds()) {
37 $this->ds->setUsePreviousImportIds(true);
38 }
39 }
40
41 public function importXmlRepresentation(
42 string $a_entity,
43 string $a_id,
44 string $a_xml,
45 ilImportMapping $a_mapping
46 ): void {
47 $parser = new ilDataSetImportParser(
48 $a_entity,
49 $this->getSchemaVersion(),
50 $a_xml,
51 $this->ds,
52 $a_mapping
53 );
54 }
55}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Import configuration class parent class.
Media Pool Data set class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
Xml importer class.