◆ importXmlRepresentation()
ilMetaDataImporter::importXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_id, |
|
|
string |
$a_xml, |
|
|
ilImportMapping |
$a_mapping |
|
) |
| |
Definition at line 43 of file class.ilMetaDataImporter.php.
References $id, $version, ilImportMapping\getMapping(), ilXmlImporter\getSchemaVersion(), ILIAS\Repository\int(), ILIAS\Repository\logger(), and ILIAS\UI\examples\Deck\repository().
49 $new_id = $a_mapping->
getMapping(
"components/ILIAS/MetaData",
"md", $a_id);
51 if (!is_string($new_id) || $new_id ===
"") {
53 'Import of LOM aborted for ' . $new_id .
', ID mapping failed.' 58 $id = explode(
":", $new_id);
62 $type = (string)
$id[2];
71 'Import of LOM aborted for ' . $new_id .
77 $md = $this->reader->read(
81 $this->
repository->transferMD($md, $obj_id, $sub_id, $type,
false);
repository()
description: > Example for rendering a repository card
getMapping(string $a_comp, string $a_entity, string $a_old_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ init()
ilMetaDataImporter::init |
( |
| ) |
|
◆ $logger
◆ $reader
StandardXMLReader ilMetaDataImporter::$reader |
|
protected |
◆ $repository
The documentation for this class was generated from the following file: