ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilExerciseHandlerGUI Class Reference

Handles user interface for exercises. More...

+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

 ilExerciseHandlerGUI ()
executeCommand ()
 execute command

Detailed Description

Handles user interface for exercises.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

ilExerciseHandlerGUI: ilObjExerciseGUI

Definition at line 14 of file class.ilExerciseHandlerGUI.php.

Member Function Documentation

& ilExerciseHandlerGUI::executeCommand ( )

execute command

Definition at line 31 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 16 of file class.ilExerciseHandlerGUI.php.

References $ilCtrl, and $lng.

{
global $ilCtrl, $lng, $ilAccess, $ilias, $ilNavigationHistory;
// initialisation stuff
$this->ctrl =& $ilCtrl;
//$ilNavigationHistory->addItem($_GET["ref_id"],
// "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$_GET["ref_id"]);
}

The documentation for this class was generated from the following file: