41 $this->ctrl = $DIC->ctrl();
42 $this->nav_history = $DIC[
"ilNavigationHistory"];
43 $this->lng = $DIC->language();
53 $next_class =
$ilCtrl->getNextClass();
56 switch ($next_class) {
71 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
73 $selection->setFormSelectMode(
77 "goto.php?target=navi_request",
84 $selection->setListTitle(
$lng->txt(
"last_visited"));
85 $selection->setId(
"lastvisited");
86 $selection->setSelectionHeaderClass(
"MMInactive");
88 $selection->setItemLinkClass(
"small");
89 $selection->setUseImages(
true);
90 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
93 $items = $ilNavigationHistory->getItems();
97 foreach (
$items as $k => $item) {
101 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) ||
102 $item[
"ref_id"] !=
$_GET[
"ref_id"] || $k > 0) {
109 $lng->txt(
"obj_" . $item[
"type"]),
114 $html = $selection->getHTML();
118 $lng->txt(
"no_items"),
125 $selection->setUseImages(
false);
126 $html = $selection->getHTML();
139 if (
$_GET[
"target"] ==
"navi_request") {
140 $items = $ilNavigationHistory->getItems();
141 foreach (
$items as $item) {
142 if ($item[
"ref_id"] ==
$_POST[
"url_ref_id"]) {
148 if (
$_POST[
"url_ref_id"] == 0 && $item[
"ref_id"] ==
$_GET[
"ref_id"]) {
151 if (
$_POST[
"url_ref_id"] == 0 && $item[
"link"] !=
"") {
155 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
"");
156 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"getlast",
"true");
157 $ilCtrl->redirectByClass(
"ilrepositorygui",
"frameset");
171 $ilNavigationHistory->deleteDBEntries();
172 $ilNavigationHistory->deleteSessionEntries();
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
handleNavigationRequest()
Handle navigation request.
executeCommand()
Execute command.
User Interface Class for Navigation History.
static _lookupObjId($a_id)
__construct()
Constructor.
getHTML()
Get HTML for navigation history.
User interface class for advanced drop-down selection lists.
removeEntries()
Remove all entries form list.
static redirect($a_script)