User Interface Class for Navigation History.
More...
Detailed Description
User Interface Class for Navigation History.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 31 of file class.ilNavigationHistoryGUI.php.
Constructor & Destructor Documentation
ilNavigationHistoryGUI::__construct |
( |
| ) |
|
Member Function Documentation
ilNavigationHistoryGUI::getHTML |
( |
| ) |
|
Get HTML for navigation history.
Definition at line 47 of file class.ilNavigationHistoryGUI.php.
References $_GET, $GLOBALS, $items, $lng, $tpl, ilObject\_getIcon(), ilObject\_lookupObjId(), formSelect(), and ilUtil\getImagePath().
{
global $ilNavigationHistory,
$lng;
$items = $ilNavigationHistory->getItems();
{
return "";
}
if (count(
$items) == 1 && $item[
"ref_id"] ==
$_GET[
"ref_id"])
{
return "";
}
$GLOBALS[
"tpl"]->addJavascript(
"./Services/Navigation/js/ServiceNavigation.js");
"Services/Navigation");
$sel_arr = array(0 => "-- ".$lng->txt("last_visited")." --");
$cnt = 0;
{
if ($cnt++ > 20) break;
if ($item[
"ref_id"] !=
$_GET[
"ref_id"])
{
$sel_arr[$item["ref_id"]] = $item["title"];
$this->css_row = ($this->css_row != "tblrow1_mo")
? "tblrow1_mo"
: "tblrow2_mo";
$tpl->setCurrentBlock(
"item");
$tpl->setVariable(
"HREF_ITEM", $item[
"link"]);
$tpl->setVariable(
"CSS_ROW", $this->css_row);
$tpl->setVariable(
"TXT_ITEM", $item[
"title"]);
$tpl->setVariable(
"IMG_ITEM",
$tpl->setVariable(
"ALT_ITEM", $lng->txt(
"obj_".$item[
"type"]));
$tpl->parseCurrentBlock();
}
}
$select =
ilUtil::formSelect(
"",
"url_ref_id", $sel_arr,
false,
true,
"0",
"ilEditSelect");
$tpl->setVariable(
"TXT_LAST_VISITED", $lng->txt(
"last_visited"));
$tpl->setVariable(
"NAVI_SELECT", $select);
$tpl->setVariable(
"TXT_GO", $lng->txt(
"go"));
$tpl->setVariable(
"ACTION",
"goto.php?target=navi_request&ref_id=".
$_GET[
"ref_id"]);
}
ilNavigationHistoryGUI::handleNavigationRequest |
( |
| ) |
|
Handle navigation request.
Definition at line 110 of file class.ilNavigationHistoryGUI.php.
References $_GET, $items, and ilUtil\redirect().
{
global $ilNavigationHistory;
if (
$_GET[
"target"] ==
"navi_request")
{
$items = $ilNavigationHistory->getItems();
{
if ($item["ref_id"] == $_POST["url_ref_id"])
{
}
}
if ($_POST[
"url_ref_id"] == 0 && $item[
"ref_id"] ==
$_GET[
"ref_id"])
{
}
if ($_POST["url_ref_id"] == 0 && $item["link"] != "")
{
}
}
}
Field Documentation
ilNavigationHistoryGUI::$items |
|
private |
The documentation for this class was generated from the following file: