Handles user interface for link resources. More...
Public Member Functions | |
| ilLinkResourceHandlerGUI () | |
| & | executeCommand () |
| execute command | |
Handles user interface for link resources.
ilLinkResourceHandlerGUI: ilObjLinkResourceGUI
Definition at line 35 of file class.ilLinkResourceHandlerGUI.php.
| & ilLinkResourceHandlerGUI::executeCommand | ( | ) |
execute command
Definition at line 52 of file class.ilLinkResourceHandlerGUI.php.
References $_GET, $cmd, $lng, and $tpl.
{
global $lng, $ilAccess, $tpl, $ilNavigationHistory;
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
if ($next_class == "")
{
$this->ctrl->setCmdClass("ilobjlinkresourcegui");
$next_class = $this->ctrl->getNextClass($this);
}
// add entry to navigation history
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilNavigationHistory->addItem($_GET["ref_id"],
"ilias.php?baseClass=ilLinkResourceHandlerGUI&cmd=infoScreen&ref_id=".$_GET["ref_id"], "webr");
}
switch ($next_class)
{
case 'ilobjlinkresourcegui':
require_once "./Modules/WebResource/classes/class.ilObjLinkResourceGUI.php";
$link_gui =& new ilObjLinkResourceGUI("", (int) $_GET["ref_id"], true, false);
$this->ctrl->forwardCommand($link_gui);
break;
}
$tpl->show();
}
| ilLinkResourceHandlerGUI::ilLinkResourceHandlerGUI | ( | ) |
Definition at line 37 of file class.ilLinkResourceHandlerGUI.php.
1.7.1