5 include_once (
"Services/Help/classes/class.ilHelp.php");
43 $this->def_screen_id[$a_part] = $a_id;
74 $this->screen_id_component = $a_comp;
86 $comp = ($this->screen_id_component !=
"")
87 ? $this->screen_id_component
88 : $this->def_screen_id[self::ID_PART_COMPONENT];
96 ? $this->screen_id[self::ID_PART_SCREEN]
97 : $this->def_screen_id[self::ID_PART_SCREEN];
100 ? $this->screen_id[self::ID_PART_SUB_SCREEN]
101 : $this->def_screen_id[self::ID_PART_SUB_SCREEN];
119 $this->help_sections[] = array(
"help_id" => $a_help_id, $a_level);
132 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
144 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
164 $ilCtrl->setParameterByClass(
"ilhelpgui",
"help_screen_id", $this->
getScreenId().
".".
$_GET[
"ref_id"]);
173 $cmd = $this->ctrl->getCmd(
"showHelp");
174 $next_class = $this->ctrl->getNextClass($this);
179 return $this->
$cmd();
191 if (
$_GET[
"help_screen_id"] !=
"")
194 $help_screen_id =
$_GET[
"help_screen_id"];
203 $id_arr = explode(
".", $help_screen_id);
204 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
207 $hm = (int) $ilSetting->get(
"help_module");
209 if ((OH_REF_ID > 0 || $hm > 0) && count($help_arr) > 0)
217 include_once(
"./Services/Help/classes/class.ilObjHelpSettings.php");
221 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
223 $acc->setId(
"oh_acc");
226 foreach ($help_arr as $h_id)
228 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
237 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
239 foreach ($pages as $pg)
242 "return il.Help.showPage(".$pg[
"child"].
");");
247 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
248 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help"));
249 $h_tpl->setVariable(
"CONTENT", $acc->getHTML());
266 $page_id = (int)
$_GET[
"help_page"];
268 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
269 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
271 $h_tpl->setCurrentBlock(
"backlink");
272 $h_tpl->setVariable(
"TXT_BACK", $lng->txt(
"back"));
273 $h_tpl->setVariable(
"ONCLICK_BACK",
274 "return il.Help.listHelp(event, true);");
275 $h_tpl->parseCurrentBlock();
278 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help").
" - ".
281 include_once(
"./Services/COPage/classes/class.ilPageUtil.php");
286 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
287 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
290 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
291 include_once(
"./Modules/LearningModule/classes/class.ilLMPageGUI.php");
293 $cfg = $page_gui->getPageConfig();
294 $page_gui->setPresentationTitle(
"");
295 $page_gui->setTemplateOutput(
false);
296 $page_gui->setHeader(
"");
297 $page_gui->setRawPageContent(
true);
298 $cfg->setEnablePCType(
"Map",
false);
299 $cfg->setEnablePCType(
"Tabs",
false);
300 $cfg->setEnablePCType(
"FileList",
false);
302 $page_gui->getPageObject()->buildDom();
303 $int_links = $page_gui->getPageObject()->getInternalLinks();
307 $page_gui->setLinkXML($link_xml);
309 $ret = $page_gui->showPage();
311 $h_tpl->setVariable(
"CONTENT",
$ret);
316 $page = $h_tpl->get();
347 include_once(
"./Services/Help/classes/class.ilHelp.php");
348 if ($this->screen_id_component !=
"")
366 $module_id = (int) $ilSetting->get(
"help_module");
368 if ((OH_REF_ID > 0 || $module_id > 0) && $ilUser->getLanguage() ==
"de")
372 $a_tpl->addOnLoadCode(
"il.Help.showCurrentPage(".
ilSession::get(
"help_pg").
");", 3);
374 if ($ilUser->getPref(
"hide_help_tt"))
376 $a_tpl->addOnLoadCode(
"if (il && il.Help) il.Help.switchTooltips();", 3);
391 $ilUser->writePref(
"hide_help_tt",
"1");
404 $ilUser->writePref(
"hide_help_tt",
"0");
414 $link_info =
"<IntLinkInfos>";
415 foreach ($a_int_links as $int_link)
417 $target = $int_link[
"Target"];
418 if (substr($target, 0, 4) ==
"il__")
422 $type = $int_link[
"Type"];
423 $targetframe =
"None";
426 $anc = $anc_add =
"";
427 if ($int_link[
"Anchor"] !=
"")
429 $anc = $int_link[
"Anchor"];
430 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
436 case "StructureObject":
437 if ($type ==
"PageObject")
439 $href =
"#pg_".$target_id;
449 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
450 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"\" Anchor=\"\"/>";
453 $link_info.=
"</IntLinkInfos>";
463 $link_info =
"<LinkTargets>";
464 $link_info.=
"<LinkTarget TargetFrame=\"None\" LinkTarget=\"\" OnClick=\"return il.Help.openLink(event);\" />";
465 $link_info.=
"</LinkTargets>";