/**
  * 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);
     }
 }
Пример #2
0
 /**
  * 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);
 }