/**
  * display status information or report errors messages
  * in case of error
  *
  * @access	public
  */
 function importFileObject()
 {
     global $_FILES, $rbacsystem, $ilDB, $tpl;
     include_once "./Modules/LearningModule/classes/class.ilObjLearningModule.php";
     if (!$rbacsystem->checkAccess("create", $_GET["ref_id"], $_GET["new_type"])) {
         $this->ilias->raiseError($this->lng->txt("no_create_permission"), $this->ilias->error_obj->MESSAGE);
         return;
     }
     $form = $this->initImportForm();
     if ($form->checkInput()) {
         // create and insert object in objecttree
         include_once "./Modules/LearningModule/classes/class.ilObjContentObject.php";
         $newObj = new ilObjContentObject();
         $newObj->setType($_GET["new_type"]);
         $newObj->setTitle($_FILES["xmldoc"]["name"]);
         $newObj->setDescription("");
         $newObj->create(true);
         $newObj->createReference();
         $newObj->putInTree($_GET["ref_id"]);
         $newObj->setPermissions($_GET["ref_id"]);
         $newObj->notify("new", $_GET["ref_id"], $_GET["parent_non_rbac_id"], $_GET["ref_id"], $newObj->getRefId());
         // create learning module tree
         $newObj->createLMTree();
         // import lm from file
         $mess = $newObj->importFromZipFile($_FILES["xmldoc"]["tmp_name"], $_FILES["xmldoc"]["name"], $_POST["validate"]);
         if ($mess == "") {
             ilUtil::sendSuccess($this->lng->txt($this->type . "_added"), true);
             ilUtil::redirect("ilias.php?ref_id=" . $newObj->getRefId() . "&baseClass=ilLMEditorGUI");
         } else {
             $link = '<a href="' . "ilias.php?ref_id=" . $newObj->getRefId() . "&baseClass=ilLMEditorGUI" . '" target="_top">' . $this->lng->txt("btn_next") . '</a>';
             $tpl->setContent("<br />" . $link . "<br /><br />" . $mess . $link);
         }
     } else {
         $form->setValuesByPost();
         $tpl->setContent($form->getHtml());
     }
 }