5include_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");
 
  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"];
 
  205                $id_arr = explode(
".", $help_screen_id);
 
  206                include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
 
  207                include_once(
"./Services/Help/classes/class.ilHelp.php");
 
  212                if ($oh_lm_id > 0 && count($help_arr) > 0)
 
  214                        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
  216                        $acc->setId(
"oh_acc_".$h_id);
 
  217                        $acc->setUseSessionStorage(
true);
 
  220                        foreach ($help_arr as $h_id)
 
  222                                include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  231                                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  233                                foreach ($pages as $pg)
 
  236                                                "return il.Help.showPage(".$pg[
"child"].
");");
 
  241                        $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  242                        $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help"));
 
  244                        $h_tpl->setCurrentBlock(
"search");
 
  245                        include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  247                        $h_tpl->parseCurrentBlock();
 
  249                        $h_tpl->setVariable(
"CONTENT", $acc->getHTML());
 
  250                        include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  267                $page_id = (int) 
$_GET[
"help_page"];
 
  269                $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  270                include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  273                $h_tpl->setCurrentBlock(
"backlink");
 
  274                $h_tpl->setVariable(
"TXT_BACK", 
$lng->txt(
"back"));
 
  277                        $h_tpl->setVariable(
"ONCLICK_BACK",
 
  282                        $h_tpl->setVariable(
"ONCLICK_BACK",
 
  283                                "return il.Help.listHelp(event, true);");
 
  285                $h_tpl->parseCurrentBlock();
 
  288                $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help").
" - ".
 
  291                include_once(
"./Services/COPage/classes/class.ilPageUtil.php");
 
  296                include_once(
"./Services/COPage/classes/class.ilPageObject.php");
 
  297                include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
  300                include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
 
  301                include_once(
"./Modules/LearningModule/classes/class.ilLMPageGUI.php");
 
  303                $cfg = $page_gui->getPageConfig();
 
  304                $page_gui->setPresentationTitle(
"");
 
  305                $page_gui->setTemplateOutput(
false);
 
  306                $page_gui->setHeader(
"");
 
  307                $page_gui->setRawPageContent(
true);
 
  308                $cfg->setEnablePCType(
"Map", 
false);
 
  309                $cfg->setEnablePCType(
"Tabs", 
false);
 
  310                $cfg->setEnablePCType(
"FileList", 
false);
 
  312                $page_gui->getPageObject()->buildDom();
 
  313                $int_links = $page_gui->getPageObject()->getInternalLinks();
 
  317                $page_gui->setLinkXML($link_xml);
 
  319                $ret = $page_gui->showPage();
 
  321                $h_tpl->setVariable(
"CONTENT", 
$ret);
 
  322                include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  327                $page = $h_tpl->get();
 
  358                include_once(
"./Services/Help/classes/class.ilHelp.php");
 
  359                if ($this->screen_id_component != 
"")
 
  377                $module_id = (int) 
$ilSetting->get(
"help_module");
 
  379                if ((OH_REF_ID > 0 || $module_id > 0) && 
$ilUser->getLanguage() == 
"de")
 
  383                                $a_tpl->addOnLoadCode(
"il.Help.showCurrentPage(".
ilSession::get(
"help_pg").
");", 3);
 
  385                        if (
$ilUser->getPref(
"hide_help_tt"))
 
  387                                $a_tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
 
  388                                $a_tpl->addOnLoadCode(
"if (il && il.Help) {il.Help.switchTooltips();}", 3);
 
  403                $ilUser->writePref(
"hide_help_tt", 
"1");
 
  416                $ilUser->writePref(
"hide_help_tt", 
"0");
 
  426                $link_info = 
"<IntLinkInfos>";
 
  427                foreach ($a_int_links as $int_link)
 
  429                        $target = $int_link[
"Target"];
 
  430                        if (substr($target, 0, 4) == 
"il__")
 
  434                                $type = $int_link[
"Type"];
 
  435                                $targetframe = 
"None";
 
  438                                $anc = $anc_add = 
"";
 
  439                                if ($int_link[
"Anchor"] != 
"")
 
  441                                        $anc = $int_link[
"Anchor"];
 
  442                                        $anc_add = 
"_".rawurlencode($int_link[
"Anchor"]);
 
  448                                        case "StructureObject":
 
  449                                                        if ($type == 
"PageObject")
 
  451                                                                $href = 
"#pg_".$target_id;
 
  461                                $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
 
  462                                        "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"\" Anchor=\"\"/>";
 
  465                $link_info.= 
"</IntLinkInfos>";
 
  475                $link_info = 
"<LinkTargets>";
 
  476                $link_info.=
"<LinkTarget TargetFrame=\"None\" LinkTarget=\"\" OnClick=\"return il.Help.openLink(event);\" />";
 
  477                $link_info.= 
"</LinkTargets>";
 
  491                $term = 
$_GET[
"term"];
 
  500                $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  501                include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  503                $h_tpl->setCurrentBlock(
"backlink");
 
  504                $h_tpl->setVariable(
"TXT_BACK", 
$lng->txt(
"back"));
 
  505                $h_tpl->setVariable(
"ONCLICK_BACK",
 
  506                        "return il.Help.listHelp(event, true);");
 
  507                $h_tpl->parseCurrentBlock();
 
  510                $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help").
" - ".
 
  511                        $lng->txt(
"search_result"));
 
  513                $h_tpl->setCurrentBlock(
"search");
 
  514                include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  517                $h_tpl->parseCurrentBlock();
 
  519                include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  523                include_once(
"./Services/Search/classes/class.ilRepositoryObjectDetailSearch.php");
 
  525                $s->setQueryString($term);
 
  528                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  533                                "return il.Help.showPage(".
$r[
"item_id"].
");");
 
  535                $h_tpl->setVariable(
"CONTENT", $grp_list->getHTML());
 
Accordion user interface class.
static get($a_glyph, $a_text="")
Get glyph html.
hasSections()
Has sections?
addHelpSection($a_help_id, $a_level=1)
Add help section.
getLinkXML($a_int_links)
get xml for links
showHelp()
Show online help.
getHelpSections()
Get help sections.
getTabTooltipText($a_tab_id)
Get tab tooltip text.
getLinkTargetsXML()
Get XMl for Link Targets.
setDefaultScreenId($a_part, $a_id)
Set default screen id.
initHelp($a_tpl)
Render current help page.
setCtrlPar()
Get help section url parameter.
deactivateTooltips()
Deactivate tooltips.
executeCommand()
execute command
getScreenId()
Get screen id.
resetCurrentPage()
Hide help.
setSubScreenId($a_id)
Set sub screen id.
setScreenId($a_id)
Set screen id.
activateTooltips()
Activate tooltips.
setScreenIdComponent($a_comp)
Set screen id component.
static getHelpSectionsForId($a_screen_id, $a_ref_id)
Get help sections for screen id.
hasScreenIdSections($a_screen_id)
Has given screen Id any sections?
static getTooltipPresentationText($a_tt_id)
Get tooltip for id.
static getHelpLMId()
Get help lm id.
_exists($a_id)
checks wether a lm content object with specified id exists or not
static getPagesOfChapter($a_lm_id, $a_chap_id)
Get pages of chapter.
static _lookupTitle($a_obj_id)
Lookup title.
Extension of ilPageObjectGUI for learning modules.
_existsAndNotEmpty($a_parent_type, $a_id, $a_lang="-")
checks whether page exists and is not empty (may return true on some empty pages)
static set($a_var, $a_val)
Set a value.
static clear($a_var)
Unset a value.
static get($a_var)
Get a value.
special template class to simplify handling of ITX/PEAR
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public