41 if ($new_id = $a_mapping->getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
48 $newObj->setNoMetaDataCreation(
true);
49 $newObj->create(
true);
54 $parser->startParsing();
56 $newObj->createProperties();
58 $parser->setFileContents();
59 $this->current_obj = $newObj;
63 $a_mapping->addMapping(
"components/ILIAS/File",
"file", $a_id, $newObj->getId());
64 $a_mapping->addMapping(
65 "components/ILIAS/MetaData",
68 $newObj->getId() .
":0:file"
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)
Import XML.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
if(!file_exists('../ilias.ini.php'))