ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilExerciseHandlerGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilExerciseHandlerGUI:
+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

 executeCommand ()
 

Protected Attributes

ILIAS GlobalScreen Services $gs
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilGlobalTemplateInterface $tpl
 
ilNavigationHistory $nav_history
 
int $requested_ref_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles user interface for exercises

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilExerciseHandlerGUI: ilObjExerciseGUI

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

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )
Exceptions
ilCtrlException
ilExerciseException

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

54 : void
55 {
56 $ilAccess = $this->access;
58 $ilNavigationHistory = $this->nav_history;
59
60 $next_class = $this->ctrl->getNextClass($this);
61 if ($next_class == "") {
62 $this->ctrl->saveParameterByClass(ilObjExerciseGUI::class, "ref_id");
63 $this->ctrl->redirectByClass(ilObjExerciseGUI::class, $this->ctrl->getCmd());
64 }
65
66 // add entry to navigation history
67 if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
68 $ilNavigationHistory->addItem(
69 $this->requested_ref_id,
70 "ilias.php?baseClass=ilExerciseHandlerGUI&cmd=showOverview&ref_id=" . $this->requested_ref_id,
71 "exc"
72 );
73 }
74
75 switch ($next_class) {
76 case 'ilobjexercisegui':
77 $this->gs->tool()->context()->claim()->repository();
78 $ex_gui = new ilObjExerciseGUI("", $this->requested_ref_id, true);
79 $this->ctrl->forwardCommand($ex_gui);
80 break;
81 }
82
84 }
ilGlobalTemplateInterface $tpl
ilNavigationHistory $nav_history
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)

References $access, $nav_history, $tpl, ILIAS\Repository\ctrl(), and ILIAS\UICore\GlobalTemplate\printToStdout().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilExerciseHandlerGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilExerciseHandlerGUI::$ctrl
protected

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

◆ $gs

ILIAS GlobalScreen Services ilExerciseHandlerGUI::$gs
protected

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

◆ $lng

ilLanguage ilExerciseHandlerGUI::$lng
protected

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

◆ $nav_history

ilNavigationHistory ilExerciseHandlerGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $requested_ref_id

int ilExerciseHandlerGUI::$requested_ref_id
protected

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

◆ $tpl

ilGlobalTemplateInterface ilExerciseHandlerGUI::$tpl
protected

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

Referenced by executeCommand().


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