5 include_once (
"Services/Help/classes/class.ilHelp.php");
43 $this->def_screen_id[$a_part] = $a_id;
53 $this->screen_id[self::ID_PART_SCREEN] = $a_id;
63 $this->screen_id[self::ID_PART_SUB_SCREEN] = $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];
95 $scr_id = ($this->screen_id[self::ID_PART_SCREEN] !=
"")
96 ? $this->screen_id[self::ID_PART_SCREEN]
97 : $this->def_screen_id[self::ID_PART_SCREEN];
99 $sub_scr_id = ($this->screen_id[self::ID_PART_SUB_SCREEN] !=
"")
100 ? $this->screen_id[self::ID_PART_SUB_SCREEN]
101 : $this->def_screen_id[self::ID_PART_SUB_SCREEN];
103 $screen_id = $comp.
"/".
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_".$h_id);
224 $acc->setUseSessionStorage(
true);
227 foreach ($help_arr as $h_id)
229 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
238 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
240 foreach ($pages as $pg)
243 "return il.Help.showPage(".$pg[
"child"].
");");
248 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
249 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help"));
250 $h_tpl->setVariable(
"CONTENT", $acc->getHTML());
251 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
268 $page_id = (int)
$_GET[
"help_page"];
270 $h_tpl =
new ilTemplate(
"tpl.help.html",
true,
true,
"Services/Help");
271 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
273 $h_tpl->setCurrentBlock(
"backlink");
274 $h_tpl->setVariable(
"TXT_BACK", $lng->txt(
"back"));
275 $h_tpl->setVariable(
"ONCLICK_BACK",
276 "return il.Help.listHelp(event, true);");
277 $h_tpl->parseCurrentBlock();
280 $h_tpl->setVariable(
"HEAD", $lng->txt(
"help").
" - ".
283 include_once(
"./Services/COPage/classes/class.ilPageUtil.php");
288 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
289 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
292 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
293 include_once(
"./Modules/LearningModule/classes/class.ilLMPageGUI.php");
295 $cfg = $page_gui->getPageConfig();
296 $page_gui->setPresentationTitle(
"");
297 $page_gui->setTemplateOutput(
false);
298 $page_gui->setHeader(
"");
299 $page_gui->setRawPageContent(
true);
300 $cfg->setEnablePCType(
"Map",
false);
301 $cfg->setEnablePCType(
"Tabs",
false);
302 $cfg->setEnablePCType(
"FileList",
false);
304 $page_gui->getPageObject()->buildDom();
305 $int_links = $page_gui->getPageObject()->getInternalLinks();
309 $page_gui->setLinkXML($link_xml);
311 $ret = $page_gui->showPage();
313 $h_tpl->setVariable(
"CONTENT",
$ret);
314 include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
319 $page = $h_tpl->get();
350 include_once(
"./Services/Help/classes/class.ilHelp.php");
351 if ($this->screen_id_component !=
"")
369 $module_id = (int) $ilSetting->get(
"help_module");
371 if ((OH_REF_ID > 0 || $module_id > 0) && $ilUser->getLanguage() ==
"de")
375 $a_tpl->addOnLoadCode(
"il.Help.showCurrentPage(".
ilSession::get(
"help_pg").
");", 3);
377 if ($ilUser->getPref(
"hide_help_tt"))
379 $a_tpl->addOnLoadCode(
"if (il && il.Help) il.Help.switchTooltips();", 3);
394 $ilUser->writePref(
"hide_help_tt",
"1");
407 $ilUser->writePref(
"hide_help_tt",
"0");
417 $link_info =
"<IntLinkInfos>";
418 foreach ($a_int_links as $int_link)
420 $target = $int_link[
"Target"];
421 if (substr($target, 0, 4) ==
"il__")
425 $type = $int_link[
"Type"];
426 $targetframe =
"None";
429 $anc = $anc_add =
"";
430 if ($int_link[
"Anchor"] !=
"")
432 $anc = $int_link[
"Anchor"];
433 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
439 case "StructureObject":
440 if ($type ==
"PageObject")
442 $href =
"#pg_".$target_id;
452 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
453 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"\" Anchor=\"\"/>";
456 $link_info.=
"</IntLinkInfos>";
466 $link_info =
"<LinkTargets>";
467 $link_info.=
"<LinkTarget TargetFrame=\"None\" LinkTarget=\"\" OnClick=\"return il.Help.openLink(event);\" />";
468 $link_info.=
"</LinkTargets>";
setSubScreenId($a_id)
Set sub screen id.
getTabTooltipText($a_tab_id)
Get tab tooltip text.
showHelp()
Show online help.
_exists($a_id)
checks wether a lm content object with specified id exists or not
executeCommand()
execute command
setScreenId($a_id)
Set screen id.
addHelpSection($a_help_id, $a_level=1)
Add help section.
activateTooltips()
Activate tooltips.
static getHelpSectionsForId($a_screen_id, $a_ref_id)
Get help sections for screen id.
static get($a_var)
Get a value.
static get($a_glyph, $a_text="")
Get glyph html.
static set($a_var, $a_val)
Set a value.
deactivateTooltips()
Deactivate tooltips.
setCtrlPar()
Get help section url parameter.
initHelp($a_tpl)
Render current help page.
static _lookupTitle($a_obj_id)
Lookup title.
resetCurrentPage()
Hide help.
static getTooltipPresentationText($a_tt_id)
Get tooltip for id.
_existsAndNotEmpty($a_parent_type, $a_id, $a_lang="-")
checks whether page exists and is not empty (may return true on some empty pages) ...
getScreenId()
Get screen id.
setScreenIdComponent($a_comp)
Set screen id component.
static _lookupObjId($a_id)
Extension of ilPageObjectGUI for learning modules.
special template class to simplify handling of ITX/PEAR
static clear($a_var)
Unset a value.
getLinkTargetsXML()
Get XMl for Link Targets.
setDefaultScreenId($a_part, $a_id)
Set default screen id.
static getPagesOfChapter($a_lm_id, $a_chap_id)
Get pages of chapter.
hasScreenIdSections($a_screen_id)
Has given screen Id any sections?
getLinkXML($a_int_links)
get xml for links
getHelpSections()
Get help sections.
lookupModuleLmId($a_id)
lookup module lm id
Accordion user interface class.
hasSections()
Has sections?