5include_once(
"Services/Help/classes/class.ilHelp.php");
 
   53        $this->lng = 
$DIC->language();
 
   54        $this->
user = $DIC->user();
 
   68        $this->def_screen_id[$a_part] = $a_id;
 
   99        $this->screen_id_component = $a_comp;
 
  111        $comp = ($this->screen_id_component != 
"")
 
  112            ? $this->screen_id_component
 
  113            : $this->def_screen_id[self::ID_PART_COMPONENT];
 
  120            ? $this->screen_id[self::ID_PART_SCREEN]
 
  121            : $this->def_screen_id[self::ID_PART_SCREEN];
 
  124            ? $this->screen_id[self::ID_PART_SUB_SCREEN]
 
  125            : $this->def_screen_id[self::ID_PART_SUB_SCREEN];
 
  143        $this->help_sections[] = array(
"help_id" => $a_help_id, $a_level);
 
  156        include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
 
  168        include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
 
  197        $cmd = $this->ctrl->getCmd(
"showHelp");
 
  198        $next_class = $this->ctrl->getNextClass($this);
 
  200        switch ($next_class) {
 
  202                return $this->$cmd();
 
  214        if (
$_GET[
"help_screen_id"] != 
"") {
 
  216            $help_screen_id = 
$_GET[
"help_screen_id"];
 
  225        $id_arr = explode(
".", $help_screen_id);
 
  226        include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
 
  227        include_once(
"./Services/Help/classes/class.ilHelp.php");
 
  232        if ($oh_lm_id > 0 && count($help_arr) > 0) {
 
  233            include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
  235            $acc->setId(
"oh_acc_" . $h_id);
 
  236            $acc->setUseSessionStorage(
true);
 
  239            foreach ($help_arr as $h_id) {
 
  240                include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  248                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  250                foreach ($pages as $pg) {
 
  255                        "return il.Help.showPage(" . $pg[
"child"] . 
");" 
  261            $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  262            $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help"));
 
  264            $h_tpl->setCurrentBlock(
"search");
 
  265            include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  267            $h_tpl->parseCurrentBlock();
 
  269            $h_tpl->setVariable(
"CONTENT", $acc->getHTML());
 
  270            include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  287        $page_id = (int) 
$_GET[
"help_page"];
 
  289        $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  290        include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  293        $h_tpl->setCurrentBlock(
"backlink");
 
  294        $h_tpl->setVariable(
"TXT_BACK", 
$lng->txt(
"back"));
 
  303                "return il.Help.listHelp(event, true);" 
  306        $h_tpl->parseCurrentBlock();
 
  309        $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help") . 
" - " .
 
  312        include_once(
"./Services/COPage/classes/class.ilPageUtil.php");
 
  316        include_once(
"./Services/COPage/classes/class.ilPageObject.php");
 
  317        include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
  320        include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
 
  321        include_once(
"./Modules/LearningModule/classes/class.ilLMPageGUI.php");
 
  323        $cfg = $page_gui->getPageConfig();
 
  324        $page_gui->setPresentationTitle(
"");
 
  325        $page_gui->setTemplateOutput(
false);
 
  326        $page_gui->setHeader(
"");
 
  327        $page_gui->setRawPageContent(
true);
 
  328        $cfg->setEnablePCType(
"Map", 
false);
 
  329        $cfg->setEnablePCType(
"Tabs", 
false);
 
  330        $cfg->setEnablePCType(
"FileList", 
false);
 
  332        $page_gui->getPageObject()->buildDom();
 
  333        $int_links = $page_gui->getPageObject()->getInternalLinks();
 
  337        $page_gui->setLinkXML($link_xml);
 
  339        $ret = $page_gui->showPage();
 
  341        $h_tpl->setVariable(
"CONTENT", 
$ret);
 
  342        include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  347        $page = $h_tpl->get();
 
  378        include_once(
"./Services/Help/classes/class.ilHelp.php");
 
  379        if ($this->screen_id_component != 
"") {
 
  399        $module_id = (int) 
$ilSetting->get(
"help_module");
 
  401        if ((OH_REF_ID > 0 || $module_id > 0) && 
$ilUser->getLanguage() == 
"de") {
 
  403                $a_tpl->addOnLoadCode(
"il.Help.showCurrentPage(" . 
ilSession::get(
"help_pg") . 
");", 3);
 
  405            $a_tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
 
  406            if (
$ilUser->getPref(
"hide_help_tt")) {
 
  407                $a_tpl->addOnLoadCode(
"if (il && il.Help) {il.Help.switchTooltips();}", 3);
 
  422        $ilUser->writePref(
"hide_help_tt", 
"1");
 
  435        $ilUser->writePref(
"hide_help_tt", 
"0");
 
  445        $link_info = 
"<IntLinkInfos>";
 
  446        foreach ($a_int_links as $int_link) {
 
  448            if (substr(
$target, 0, 4) == 
"il__") {
 
  451                $type = $int_link[
"Type"];
 
  452                $targetframe = 
"None";
 
  455                $anc = $anc_add = 
"";
 
  456                if ($int_link[
"Anchor"] != 
"") {
 
  457                    $anc = $int_link[
"Anchor"];
 
  458                    $anc_add = 
"_" . rawurlencode($int_link[
"Anchor"]);
 
  463                    case "StructureObject":
 
  464                            if (
$type == 
"PageObject") {
 
  473                $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" " .
 
  474                    "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"\" Anchor=\"\"/>";
 
  477        $link_info.= 
"</IntLinkInfos>";
 
  487        $link_info = 
"<LinkTargets>";
 
  488        $link_info.=
"<LinkTarget TargetFrame=\"None\" LinkTarget=\"\" OnClick=\"return il.Help.openLink(event);\" />";
 
  489        $link_info.= 
"</LinkTargets>";
 
  503        $term = 
$_GET[
"term"];
 
  511        $h_tpl = 
new ilTemplate(
"tpl.help.html", 
true, 
true, 
"Services/Help");
 
  512        include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
  514        $h_tpl->setCurrentBlock(
"backlink");
 
  515        $h_tpl->setVariable(
"TXT_BACK", 
$lng->txt(
"back"));
 
  518            "return il.Help.listHelp(event, true);" 
  520        $h_tpl->parseCurrentBlock();
 
  523        $h_tpl->setVariable(
"HEAD", 
$lng->txt(
"help") . 
" - " .
 
  524            $lng->txt(
"search_result"));
 
  526        $h_tpl->setCurrentBlock(
"search");
 
  527        include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  530        $h_tpl->parseCurrentBlock();
 
  532        include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  536        include_once(
"./Services/Search/classes/class.ilRepositoryObjectDetailSearch.php");
 
  538        $s->setQueryString($term);
 
  541        include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  548                "return il.Help.showPage(" . 
$r[
"item_id"] . 
");" 
  551        $h_tpl->setVariable(
"CONTENT", $grp_list->getHTML());
 
An exception for terminatinating execution or to throw for unit testing.
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.
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.
static initHelp($a_tpl)
Render current help page.
activateTooltips()
Activate tooltips.
setScreenIdComponent($a_comp)
Set screen id component.
static hasScreenIdSections($a_screen_id)
Has given screen Id any sections?
static getHelpSectionsForId($a_screen_id, $a_ref_id)
Get help sections for screen id.
static getTooltipPresentationText($a_tt_id)
Get tooltip for id.
static getHelpLMId()
Get help lm id.
static getPagesOfChapter($a_lm_id, $a_chap_id)
Get pages of chapter.
static _lookupTitle($a_obj_id)
Lookup title.
static _exists($a_id)
checks wether a lm content object with specified id exists or not
Extension of ilPageObjectGUI for learning modules.
static _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
catch(Exception $e) if(isset( $_POST[ 'cancel'])) if(isset($_POST['continue'])) $cfg