ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMyTestResultsGUI Class Reference
+ Collaboration diagram for ilMyTestResultsGUI:

Public Member Functions

 getTestObj ()
 
 setTestObj ($testObj)
 
 getTestAccess ()
 
 setTestAccess ($testAccess)
 
 getTestSession ()
 
 setTestSession ($testSession)
 
 getObjectiveParent ()
 
 setObjectiveParent ($objectiveParent)
 
 executeCommand ()
 Execute Command. More...
 

Data Fields

const EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserResultsOverview'
 command constants More...
 

Protected Attributes

 $testObj
 
 $testAccess
 
 $testSession
 
 $objectiveParent
 

Detailed Description

Definition at line 18 of file class.ilMyTestResultsGUI.php.

Member Function Documentation

◆ executeCommand()

ilMyTestResultsGUI::executeCommand ( )

Execute Command.

Definition at line 112 of file class.ilMyTestResultsGUI.php.

References $DIC, getObjectiveParent(), getTestAccess(), and getTestObj().

113  {
114  global $DIC; /* @var ILIAS\DI\Container $DIC */
115 
116  if (!$DIC->ctrl()->getCmd()) {
117  $DIC->ctrl()->setCmd(self::EVALGUI_CMD_SHOW_PASS_OVERVIEW);
118  }
119 
120  switch ($DIC->ctrl()->getNextClass()) {
121  case "iltestevaluationgui":
122  require_once 'Modules/Test/classes/class.ilTestEvaluationGUI.php';
123  $gui = new ilTestEvaluationGUI($this->getTestObj());
124  $gui->setObjectiveOrientedContainer($this->getObjectiveParent());
125  $gui->setTestAccess($this->getTestAccess());
126  $DIC->ctrl()->forwardCommand($gui);
127  break;
128 
129  case 'ilassquestionpagegui':
130  require_once 'Modules/Test/classes/class.ilAssQuestionPageCommandForwarder.php';
131  $forwarder = new ilAssQuestionPageCommandForwarder();
132  $forwarder->setTestObj($this->getTestObj());
133  $forwarder->forward();
134  break;
135  }
136  }
global $DIC
Definition: saml.php:7
Output class for assessment test evaluation.
+ Here is the call graph for this function:

◆ getObjectiveParent()

ilMyTestResultsGUI::getObjectiveParent ( )
Returns
ilTestObjectiveOrientedContainer

Definition at line 96 of file class.ilMyTestResultsGUI.php.

References $objectiveParent.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTestAccess()

ilMyTestResultsGUI::getTestAccess ( )
Returns
ilTestAccess

Definition at line 64 of file class.ilMyTestResultsGUI.php.

References $testAccess.

Referenced by executeCommand().

65  {
66  return $this->testAccess;
67  }
+ Here is the caller graph for this function:

◆ getTestObj()

ilMyTestResultsGUI::getTestObj ( )
Returns
ilObjTest

Definition at line 48 of file class.ilMyTestResultsGUI.php.

References $testObj.

Referenced by executeCommand().

49  {
50  return $this->testObj;
51  }
+ Here is the caller graph for this function:

◆ getTestSession()

ilMyTestResultsGUI::getTestSession ( )
Returns
ilTestSession

Definition at line 80 of file class.ilMyTestResultsGUI.php.

References $testSession.

◆ setObjectiveParent()

ilMyTestResultsGUI::setObjectiveParent (   $objectiveParent)
Parameters
ilTestObjectiveOrientedContainer$objectiveParent

Definition at line 104 of file class.ilMyTestResultsGUI.php.

References $objectiveParent.

105  {
106  $this->objectiveParent = $objectiveParent;
107  }

◆ setTestAccess()

ilMyTestResultsGUI::setTestAccess (   $testAccess)
Parameters
ilTestAccess$testAccess

Definition at line 72 of file class.ilMyTestResultsGUI.php.

References $testAccess.

73  {
74  $this->testAccess = $testAccess;
75  }

◆ setTestObj()

ilMyTestResultsGUI::setTestObj (   $testObj)
Parameters
ilObjTest$testObj

Definition at line 56 of file class.ilMyTestResultsGUI.php.

References $testObj.

57  {
58  $this->testObj = $testObj;
59  }

◆ setTestSession()

ilMyTestResultsGUI::setTestSession (   $testSession)
Parameters
ilTestSession$testSession

Definition at line 88 of file class.ilMyTestResultsGUI.php.

References $testSession.

89  {
90  $this->testSession = $testSession;
91  }

Field Documentation

◆ $objectiveParent

ilMyTestResultsGUI::$objectiveParent
protected

Definition at line 43 of file class.ilMyTestResultsGUI.php.

Referenced by getObjectiveParent(), and setObjectiveParent().

◆ $testAccess

ilMyTestResultsGUI::$testAccess
protected

Definition at line 33 of file class.ilMyTestResultsGUI.php.

Referenced by getTestAccess(), and setTestAccess().

◆ $testObj

ilMyTestResultsGUI::$testObj
protected

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

Referenced by getTestObj(), and setTestObj().

◆ $testSession

ilMyTestResultsGUI::$testSession
protected

Definition at line 38 of file class.ilMyTestResultsGUI.php.

Referenced by getTestSession(), and setTestSession().

◆ EVALGUI_CMD_SHOW_PASS_OVERVIEW

const ilMyTestResultsGUI::EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserResultsOverview'

command constants

Definition at line 23 of file class.ilMyTestResultsGUI.php.


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