30 $this->tpl =
$DIC->ui()->mainTemplate();
35 string $parent_cmd =
""
39 $chapter_has_no_active_page =
$service->getNavigationStatus()->isChapterWithoutActivePage();
41 $focus_id =
$service->getPresentationStatus()->getFocusId();
42 $export_all_languages =
$service->getPresentationStatus()->exportAllLanguages();
43 $current_page =
$service->getNavigationStatus()->getCurrentPage();
44 $deactivated_page =
$service->getNavigationStatus()->isDeactivatedPage();
45 $requested_obj_id =
$service->getRequest()->getObjId();
48 $offline =
$service->getPresentationStatus()->offline();
50 "illmpresentationgui",
57 $exp->setMainTemplate($this->tpl);
58 $exp->setTracker($tracker);
61 $page_id = $current_page;
62 if ($deactivated_page) {
63 $page_id = $requested_obj_id;
66 $exp->setPathOpen((
int) $page_id);
69 if ($chapter_has_no_active_page &&
71 $exp->setHighlightNode($requested_obj_id);
73 if ($lm->getTOCMode() ==
"pages") {
74 if ($deactivated_page) {
75 $exp->setHighlightNode($requested_obj_id);
77 $exp->setHighlightNode($page_id);
80 $exp->setHighlightNode((
int) $lm_tree->getParentId($page_id));
84 $exp->setOfflineMode(
true);
static _lookupType(int $a_obj_id, int $a_lm_id=0)
Main service init and factory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getExplorer(ilLMPresentationService $service, string $parent_cmd="")
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...