ILIAS  release_8 Revision v8.24
class.ilMetaDataImporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
5
13{
14 public function importXmlRepresentation(
15 string $a_entity,
16 string $a_id,
17 string $a_xml,
18 ilImportMapping $a_mapping
19 ): void {
20 $new_id = $a_mapping->getMapping("Services/MetaData", "md", $a_id);
21
22 if (is_string($new_id) && $new_id !== "") {
23 $id = explode(":", $new_id);
24 $xml_copier = new ilMDXMLCopier($a_xml, (int) $id[0], (int) $id[1], $id[2]);
25 $xml_copier->startParsing();
26 }
27 }
28}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Importer class for media pools.
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...