Handles user interface for exercises. More...
Public Member Functions | |
| ilExerciseHandlerGUI () | |
| & | executeCommand () |
| execute command | |
Handles user interface for exercises.
ilExerciseHandlerGUI: ilObjExerciseGUI
Definition at line 35 of file class.ilExerciseHandlerGUI.php.
| & ilExerciseHandlerGUI::executeCommand | ( | ) |
execute command
Definition at line 52 of file class.ilExerciseHandlerGUI.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("ilobjexercisegui");
$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=ilExerciseHandlerGUI&cmd=infoScreen&ref_id=".$_GET["ref_id"], "exc");
}
switch ($next_class)
{
case 'ilobjexercisegui':
require_once "./Modules/Exercise/classes/class.ilObjExerciseGUI.php";
$ex_gui =& new ilObjExerciseGUI("", (int) $_GET["ref_id"], true, false);
$this->ctrl->forwardCommand($ex_gui);
break;
}
$tpl->show();
}
| ilExerciseHandlerGUI::ilExerciseHandlerGUI | ( | ) |
Definition at line 37 of file class.ilExerciseHandlerGUI.php.
1.7.1