/**
  * Show info screen
  *
  * @param
  * @return
  */
 function showInfoScreen()
 {
     global $ilAccess;
     $this->getTemplate();
     $this->setTabs();
     $this->setLocator();
     $this->lng->loadLanguageModule("meta");
     include_once "./Services/InfoScreen/classes/class.ilInfoScreenGUI.php";
     $info = new ilInfoScreenGUI($this);
     $info->enablePrivateNotes();
     $info->enableNews();
     if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
         $info->enableNewsEditing();
         $news_set = new ilSetting("news");
         $enable_internal_rss = $news_set->get("enable_rss_for_internal");
         if ($enable_internal_rss) {
             $info->setBlockProperty("news", "settings", true);
         }
     }
     $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
     ilObjGlossaryGUI::addUsagesToInfo($info, $this->object->getId());
     $this->ctrl->forwardCommand($info);
 }
 /**
  * info screen
  */
 function outputInfoScreen()
 {
     global $ilBench, $ilAccess, $ilTabs;
     $this->setTabs();
     $ilTabs->activateTab("info");
     $this->lng->loadLanguageModule("meta");
     include_once "./Services/InfoScreen/classes/class.ilInfoScreenGUI.php";
     $info = new ilInfoScreenGUI($this->glossary_gui);
     $info->enablePrivateNotes();
     //$info->enableLearningProgress();
     $info->enableNews();
     if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
         $info->enableNewsEditing();
         $news_set = new ilSetting("news");
         $enable_internal_rss = $news_set->get("enable_rss_for_internal");
         if ($enable_internal_rss) {
             $info->setBlockProperty("news", "settings", true);
         }
     }
     // add read / back button
     if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
         /*
         			if ($_GET["obj_id"] > 0)
         			{
         				$this->ctrl->setParameter($this, "obj_id", $_GET["obj_id"]);
         				$info->addButton($this->lng->txt("back"),
         					$this->ctrl->getLinkTarget($this, "layout"));
         			}
         			else
         			{
         				$info->addButton($this->lng->txt("view"),
         					$this->ctrl->getLinkTarget($this, "layout"));
         			}*/
     }
     // show standard meta data section
     $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
     include_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
     ilObjGlossaryGUI::addUsagesToInfo($info, $this->glossary->getId());
     if ($this->offlineMode()) {
         $this->tpl->setContent($info->getHTML());
         return $this->tpl->get();
     } else {
         // forward the command
         $this->ctrl->forwardCommand($info);
     }
 }
Example #3
0
 case "st":
     require_once "./Modules/LearningModule/classes/class.ilStructureObjectGUI.php";
     ilStructureObjectGUI::_goto($target_id, $additional);
     break;
     // exception, must be kept for now
 // exception, must be kept for now
 case "git":
     require_once "./Modules/Glossary/classes/class.ilGlossaryTermGUI.php";
     $target_ref_id = $target_arr[2];
     ilGlossaryTermGUI::_goto($target_id, $target_ref_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "glo":
     require_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
     ilObjGlossaryGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "lm":
 case "dbk":
     require_once "./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php";
     ilObjContentObjectGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "htlm":
     require_once "./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php";
     ilObjFileBasedLMGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation