24 require_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
25 require_once (
"./Services/COPage/classes/class.ilPageObjectGUI.php");
63 $this->ctrl->saveParameter($this, array(
"def"));
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd();
75 $this->tpl->setCurrentBlock(
"ContentStyle");
76 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
78 $this->tpl->parseCurrentBlock();
81 $this->tpl->setCurrentBlock(
"SyntaxStyle");
82 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
84 $this->tpl->parseCurrentBlock();
86 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
88 $gloss_loc->setTerm($this->term);
89 $gloss_loc->setGlossary($this->glossary);
90 $gloss_loc->setDefinition($this->definition);
92 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
93 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
94 $this->tpl->setTitle($this->term->getTerm().
" - ".
95 $this->lng->txt(
"cont_definition").
" ".
96 $this->definition->getNr());
97 if ($this->ctrl->getNextClass() ==
"ilpageobjectgui")
105 case "ilpageobjectgui":
108 if ($ilCtrl->getCmd() ==
"edit" &&
109 $ilCtrl->getCmdClass() ==
"ilpageobjectgui")
114 $link =
"[<a href='".
115 $ilCtrl->getLinkTargetByClass(
"ilglossarytermgui",
"listUsages").
116 "'>".$lng->txt(
"glo_list_usages").
"</a>]";
123 if ($this->ctrl->getNextClass() ==
"ilpageobjectgui"
124 || $this->ctrl->getCmdClass() ==
"ileditclipboardgui")
126 $gloss_loc->display();
129 $this->ctrl->setReturnByClass(
"ilPageObjectGUI",
"edit");
130 $this->ctrl->setReturn($this,
"listDefinitions");
133 $this->definition->assignPageObject($page);
134 $page->addUpdateListener($this,
"saveShortText");
136 $page_gui->activateMetaDataEditor($this->glossary->getId(),
137 $this->definition->getId(),
"gdf");
140 $page_gui->setSourcecodeDownloadScript(
"ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=".
$_GET[
"ref_id"]);
141 $page_gui->setFullscreenLink(
"ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=fullscreen&ref_id=".
$_GET[
"ref_id"]);
142 $page_gui->setTemplateTargetVar(
"ADM_CONTENT");
143 $page_gui->setOutputMode(
"edit");
144 $page_gui->setLocator($gloss_loc);
145 $page_gui->setEnabledInternalLinks(
true);
146 $page_gui->setIntLinkHelpDefault(
"GlossaryItem",
$_GET[
"ref_id"]);
147 $page_gui->setIntLinkReturn($this->ctrl->getLinkTargetByClass(
"ilobjglossarygui",
"quickList",
149 $page_gui->setPageBackTitle($this->lng->txt(
"cont_definition"));
150 $page_gui->setLinkParams(
"ref_id=".
$_GET[
"ref_id"]);
151 $page_gui->setHeader($this->term->getTerm());
152 $page_gui->setFileDownloadLink(
"ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=downloadFile&ref_id=".
$_GET[
"ref_id"]);
153 $page_gui->setPresentationTitle($this->term->getTerm());
154 $ret =& $this->ctrl->forwardCommand($page_gui);
155 $tpl->setContent(
$ret);
160 $gloss_loc->display();
175 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
176 $this->tpl->setVariable(
"HEADER", $a_header_title);
177 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
178 $this->displayLocator();
199 $tabs_gui->setBack2Target($this->lng->txt(
"glossary"),
200 $this->ctrl->getParentReturn($this));
203 $tabs_gui->setBackTarget($this->lng->txt(
"term"),
204 $this->ctrl->getLinkTargetByClass(
"ilglossarytermgui",
"editTerm"));
211 $this->definition->updateShortText();