19 declare(strict_types=1);
31 public function init(): void
37 if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
39 } elseif ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'refs',
'0')) {
42 $this->folder =
new ilObjFolder();
43 $this->folder->create();
49 $a_mapping->
addMapping(
'components/ILIAS/Folder',
'fold', $a_id, (
string) $this->folder->getId());
51 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getMapping(string $a_comp, string $a_entity, string $a_old_id)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
XML parser for folder xml.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id