5 include_once (
"Services/Help/classes/class.ilHelp.php");
40 $this->def_screen_id[$a_part] = $a_id;
71 $this->screen_id_component = $a_comp;
83 $comp = ($this->screen_id_component !=
"")
84 ? $this->screen_id_component
85 : $this->def_screen_id[self::ID_PART_COMPONENT];
93 ? $this->screen_id[self::ID_PART_SCREEN]
94 : $this->def_screen_id[self::ID_PART_SCREEN];
97 ? $this->screen_id[self::ID_PART_SUB_SCREEN]
98 : $this->def_screen_id[self::ID_PART_SUB_SCREEN];
116 $this->help_sections[] = array(
"help_id" => $a_help_id, $a_level);
129 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
141 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
161 $ilCtrl->setParameterByClass(
"ilhelpgui",
"help_screen_id", $this->
getScreenId().
".".
$_GET[
"ref_id"]);
170 $cmd = $this->ctrl->getCmd(
"showHelp");
171 $next_class = $this->ctrl->getNextClass($this);
176 return $this->
$cmd();
188 if (
$_GET[
"help_screen_id"] !=
"")
191 $help_screen_id =
$_GET[
"help_screen_id"];
200 $id_arr = explode(
".", $help_screen_id);
201 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
204 $hm = (int) $ilSetting->get(
"help_module");
206 if ((OH_REF_ID > 0 || $hm > 0) && count($help_arr) > 0)
214 include_once(
"./Services/Help/classes/class.ilObjHelpSettings.php");
218 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
220 $acc->setId(
"oh_acc");
223 foreach ($help_arr as $h_id)
225 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
234 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
236 foreach ($pages as $pg)
239 "return il.Help.showPage(".$pg[
"child"].
");");
244 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
245 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help"));
246 $h_tpl->setVariable(
"CONTENT", $acc->getHTML());
263 $page_id = (int)
$_GET[
"help_page"];
265 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
266 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
268 $h_tpl->setCurrentBlock(
"backlink");
269 $h_tpl->setVariable(
"TXT_BACK", $lng->txt(
"back"));
270 $h_tpl->setVariable(
"ONCLICK_BACK",
271 "return il.Help.listHelp(event, true);");
272 $h_tpl->parseCurrentBlock();
275 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help").
" - ".
278 include_once(
"./Services/COPage/classes/class.ilPageUtil.php");
283 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
284 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
287 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
289 $page_gui->setPresentationTitle(
"");
290 $page_gui->setTemplateOutput(
false);
291 $page_gui->setHeader(
"");
292 $page_gui->setEnabledFileLists(
false);
293 $page_gui->setEnabledPCTabs(
false);
294 $page_gui->setFileDownloadLink(
".");
295 $page_gui->setFullscreenLink(
".");
296 $page_gui->setSourcecodeDownloadScript(
".");
297 $page_gui->setRawPageContent(
true);
298 $page_gui->setEnabledMaps(
false);
299 $ret = $page_gui->showPage();
301 $h_tpl->setVariable(
"CONTENT",
$ret);
306 $page = $h_tpl->get();
337 include_once(
"./Services/Help/classes/class.ilHelp.php");
338 if ($this->screen_id_component !=
"")
358 $a_tpl->addOnLoadCode(
"il.Help.showCurrentPage(".
ilSession::get(
"help_pg").
");", 3);
360 if ($ilUser->getPref(
"hide_help_tt"))
362 $a_tpl->addOnLoadCode(
"il.Help.switchTooltips();", 3);
376 $ilUser->writePref(
"hide_help_tt",
"1");
389 $ilUser->writePref(
"hide_help_tt",
"0");