ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaCastImporter.php
Go to the documentation of this file.
1<?php
2
24{
26
27 public function init(): void
28 {
29 $this->ds = new ilMediaCastDataSet();
30 $this->ds->setDSPrefix("ds");
31 }
32
33 public function importXmlRepresentation(
34 string $a_entity,
35 string $a_id,
36 string $a_xml,
37 ilImportMapping $a_mapping
38 ): void {
39 $parser = new ilDataSetImportParser(
40 $a_entity,
41 $this->getSchemaVersion(),
42 $a_xml,
43 $this->ds,
44 $a_mapping
45 );
46 }
47
48 public function finalProcessing(
49 ilImportMapping $a_mapping
50 ): void {
51 // restore manual order
52 $order = $this->ds->getOrder();
53 if (sizeof($order)) {
54 foreach ($order as $obj_id => $items) {
55 $map = array();
56 foreach ($items as $old_id) {
57 $map[] = $a_mapping->getMapping("components/ILIAS/News", "news", $old_id);
58 }
59
60 $mcst = new ilObjMediaCast($obj_id, false);
61 $mcst->saveOrder($map);
62 }
63 }
64 }
65}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getMapping(string $a_comp, string $a_entity, string $a_old_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
finalProcessing(ilImportMapping $a_mapping)
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Xml importer class.