/** * */ public function forcePublicRoom() { $ref_id = ilObjChatroom::_getPublicRefId(); if (!$ref_id) { $this->createPublicRoom(); return; } $instance = ilObjectFactory::getInstanceByRefId($ref_id, false); if (!$instance) { $this->createPublicRoom(); return; } $obj_id = ilObject::_lookupObjId($ref_id); if (!$obj_id) { $this->createPublicRoom(); return; } if (!ilObject::_hasUntrashedReference($obj_id)) { $this->createPublicRoom(); return; } require_once 'Modules/Chatroom/classes/class.ilChatroomInstaller.php'; ilChatroomInstaller::ensureCorrectPublicChatroomTreeLocation($ref_id); }