getMapping('Services/Container', 'objs', $a_id)) { $newObj = ilObjectFactory::getInstanceByObjId($new_id, false); } else { $newObj = new ilObjChatroom(); $newObj->setType('chtr'); $newObj->create(); } require_once 'Modules/Chatroom/classes/class.ilChatroomXMLParser.php'; $parser = new ilChatroomXMLParser($newObj, $a_xml); $parser->setImportInstallId($this->getInstallId()); $parser->startParsing(); $a_mapping->addMapping('Modules/Chatroom', 'chtr', $a_id, $newObj->getId()); } }