37 $this->
ctrl = $DIC->ctrl();
38 $this->nav_history = $DIC[
"ilNavigationHistory"];
39 $this->
lng = $DIC->language();
51 $cmd = $ilCtrl->getCmd();
53 switch ($next_class) {
66 $selection->setFormSelectMode(
70 "goto.php?target=navi_request",
77 $selection->setListTitle($lng->
txt(
"last_visited"));
78 $selection->setId(
"lastvisited");
79 $selection->setSelectionHeaderClass(
"MMInactive");
81 $selection->setItemLinkClass(
"small");
82 $selection->setUseImages(
true);
84 $items = $ilNavigationHistory->getItems();
88 foreach ($items as $k => $item) {
92 if (!isset($item[
"ref_id"]) || $this->request->getRefId() === 0 ||
93 $item[
"ref_id"] != $this->request->getRefId() || $k > 0) {
100 $lng->
txt(
"obj_" . $item[
"type"]),
105 $html = $selection->getHTML();
109 $lng->
txt(
"no_items"),
116 $selection->setUseImages(
false);
117 $html = $selection->getHTML();
127 if ($this->request->getTarget() ===
"navi_request") {
128 $items = $ilNavigationHistory->getItems();
129 foreach ($items as $item) {
130 if ($item[
"ref_id"] == $this->request->getUrlRefId()) {
135 $item = current($items);
136 if ($this->request->getUrlRefId() === 0 && $item[
"ref_id"] == $this->request->getRefId()) {
137 $item = next($items);
139 if ($this->request->getUrlRefId() === 0 && $item[
"link"] !=
"") {
143 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
"");
144 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"getlast",
"true");
145 $ilCtrl->redirectByClass(
"ilrepositorygui",
"");
154 $ilNavigationHistory->deleteSessionEntries();
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
handleNavigationRequest()
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilNavigationHistory $nav_history
static _lookupObjId(int $ref_id)
User Interface Class for Navigation History.
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
getNextClass($a_gui_class=null)
Navigation History of Repository Items.
static redirect(string $a_script)
StandardGUIRequest $request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...