/**
  * save new learning module to db
  */
 function saveObject()
 {
     if (trim($_POST["title"]) == "") {
         $this->ilias->raiseError($this->lng->txt("msg_no_title"), $this->ilias->error_obj->MESSAGE);
     }
     include_once "./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";
     $newObj = new ilObjSCORM2004LearningModule();
     $newObj->setTitle(ilUtil::stripSlashes($_POST["title"]));
     $newObj->setSubType("scorm2004");
     $newObj->setEditable(true);
     $newObj->setDescription(ilUtil::stripSlashes($_POST["desc"]));
     $newObj->create();
     $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());
     $newObj->createDataDirectory();
     $newObj->createScorm2004Tree();
     ilUtil::sendInfo($this->lng->txt($newObj->getType() . "_added"), true);
     ilUtil::redirect("ilias.php?baseClass=ilSAHSEditGUI&ref_id=" . $newObj->getRefId());
 }