19 declare(strict_types=1);
28 if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
32 $newObj->setTitle(
'');
33 $newObj->setDescription(
'');
34 $newObj->setType(
'chtr');
40 $parser->startParsing();
42 $a_mapping->
addMapping(
'components/ILIAS/Chatroom',
'chtr', $a_id, (
string) $newObj->getId());
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilChatroomImporter.