62 : void
63 {
67 $lang = ($this->requested_lang ===
"")
68 ? "-"
69 : $this->requested_lang;
70
71 $next_class = $this->
ctrl->getNextClass($this);
72 if ($next_class == "") {
73 $this->
ctrl->saveParameterByClass(ilObjWikiGUI::class,
"ref_id");
74 $this->
ctrl->redirectByClass(ilObjWikiGUI::class, $this->
ctrl->getCmd());
75 }
76
77
78 if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
79 $pm = $this->domain->page()->page($this->requested_ref_id);
82 $link = $pm->getPermaLinkByTitle(
83 $this->requested_page,
85 );
86
87 $page_id = (
int) $pm->getPageIdForTitle($this->requested_page,
$lang);
88 if ($page_id > 0) {
89 $ptitle = $pm->getTitle($page_id,
$lang);
90 $title .= ": " . $ptitle;
91
92 $ilNavigationHistory->addItem(
93 $this->requested_ref_id,
94 $link,
95 "wiki",
96 $title,
97 $page_id,
98 $link
99 );
100 }
101 }
102
103 switch ($next_class) {
104 case 'ilobjwikigui':
106 "",
107 $this->requested_ref_id,
108 true,
109 false
110 );
111 $this->
ctrl->forwardCommand($mc_gui);
112 break;
113 }
114
116 }
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
ilNavigationHistory $nav_history
ilGlobalTemplateInterface $tpl
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)