ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestQuestionConfig Class Reference

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

+ Collaboration diagram for ilTestQuestionConfig:

Public Member Functions

 __construct ()
 ilTestQuestionConfig constructor. More...
 
 isUnchangedAnswerPossible ()
 Return if the saving of an unchanged answer is supported with an additional checkbox. More...
 
 setIsUnchangedAnswerPossible ($isUnchangedAnswerPossible)
 Set if the saving of an unchanged answer is supported with an additional checkbox. More...
 
 getUseUnchangedAnswerLabel ()
 Return the label to be used for the 'use unchanged answer' checkbox. More...
 
 setUseUnchangedAnswerLabel ($useUnchangedAnswerLabel)
 Return the label to be used for the 'use unchanged answer' checkbox. More...
 
 isFormChangeDetectionEnabled ()
 Return if the detection of form changes is enabled. More...
 
 setFormChangeDetectionEnabled ($enableFormChangeDetection)
 Set if the detection of form changes is enabled. More...
 
 isBackgroundChangeDetectionEnabled ()
 Return if the detection of background changes is enabled. More...
 
 setBackgroundChangeDetectionEnabled ($enableBackgroundChangeDetection)
 Set if the detection of background changes is enabled This is set by Java and Flash questions to poll for server-side savings. More...
 
 isPreviousPassSolutionReuseAllowed ()
 
 setPreviousPassSolutionReuseAllowed ($previousPassSolutionReuseAllowed)
 
 isSolutionInitiallyPrefilled ()
 
 setSolutionInitiallyPrefilled ($solutionInitiallyPrefilled)
 
 isScoreEmptyMcSolutionsEnabled ()
 
 setScoreEmptyMcSolutionsEnabled ($scoreEmptyMcSolutionsEnabled)
 
 isWorkedThrough ()
 
 setWorkedThrough ($workedThrough)
 

Protected Attributes

 $isUnchangedAnswerPossible = false
 
 $useUnchangedAnswerLabel = ''
 
 $enableFormChangeDetection = true
 
 $enableBackgroundChangeDetection = false
 
 $previousPassSolutionReuseAllowed = false
 
 $solutionInitiallyPrefilled = false
 
 $scoreEmptyMcSolutionsEnabled = false
 
 $workedThrough = false
 

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 Test Question configuration

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

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionConfig::__construct ( )

ilTestQuestionConfig constructor.

Definition at line 42 of file class.ilTestQuestionConfig.php.

References $DIC, and $lng.

43  {
44  global $DIC;
45  $lng = $DIC['lng'];
46  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
47  }
$lng
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ getUseUnchangedAnswerLabel()

ilTestQuestionConfig::getUseUnchangedAnswerLabel ( )

Return the label to be used for the 'use unchanged answer' checkbox.

Returns
string

Definition at line 73 of file class.ilTestQuestionConfig.php.

References $useUnchangedAnswerLabel.

73  : string
74  {
76  }

◆ isBackgroundChangeDetectionEnabled()

ilTestQuestionConfig::isBackgroundChangeDetectionEnabled ( )

Return if the detection of background changes is enabled.

Returns
bool

Definition at line 113 of file class.ilTestQuestionConfig.php.

References $enableBackgroundChangeDetection.

113  : bool
114  {
116  }

◆ isFormChangeDetectionEnabled()

ilTestQuestionConfig::isFormChangeDetectionEnabled ( )

Return if the detection of form changes is enabled.

Returns
bool

Definition at line 93 of file class.ilTestQuestionConfig.php.

References $enableFormChangeDetection.

93  : bool
94  {
96  }

◆ isPreviousPassSolutionReuseAllowed()

ilTestQuestionConfig::isPreviousPassSolutionReuseAllowed ( )
Returns
bool

Definition at line 135 of file class.ilTestQuestionConfig.php.

References $previousPassSolutionReuseAllowed.

135  : bool
136  {
138  }

◆ isScoreEmptyMcSolutionsEnabled()

ilTestQuestionConfig::isScoreEmptyMcSolutionsEnabled ( )
Returns
bool

Definition at line 175 of file class.ilTestQuestionConfig.php.

References $scoreEmptyMcSolutionsEnabled.

175  : bool
176  {
178  }

◆ isSolutionInitiallyPrefilled()

ilTestQuestionConfig::isSolutionInitiallyPrefilled ( )
Returns
bool

Definition at line 153 of file class.ilTestQuestionConfig.php.

References $solutionInitiallyPrefilled.

153  : bool
154  {
156  }

◆ isUnchangedAnswerPossible()

ilTestQuestionConfig::isUnchangedAnswerPossible ( )

Return if the saving of an unchanged answer is supported with an additional checkbox.

Returns
bool

Definition at line 53 of file class.ilTestQuestionConfig.php.

References $isUnchangedAnswerPossible.

Referenced by setIsUnchangedAnswerPossible().

53  : bool
54  {
56  }
+ Here is the caller graph for this function:

◆ isWorkedThrough()

ilTestQuestionConfig::isWorkedThrough ( )
Returns
bool

Definition at line 191 of file class.ilTestQuestionConfig.php.

References $workedThrough.

191  : bool
192  {
193  return $this->workedThrough;
194  }

◆ setBackgroundChangeDetectionEnabled()

ilTestQuestionConfig::setBackgroundChangeDetectionEnabled (   $enableBackgroundChangeDetection)

Set if the detection of background changes is enabled This is set by Java and Flash questions to poll for server-side savings.

Parameters
$enableBackgroundChangeDetection
Returns
ilTestQuestionConfig

Definition at line 125 of file class.ilTestQuestionConfig.php.

References $enableBackgroundChangeDetection.

126  {
127  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
128  return $this;
129  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ setFormChangeDetectionEnabled()

ilTestQuestionConfig::setFormChangeDetectionEnabled (   $enableFormChangeDetection)

Set if the detection of form changes is enabled.

Parameters
bool$enableFormChangeDetection
Returns
ilTestQuestionConfig

Definition at line 103 of file class.ilTestQuestionConfig.php.

References $enableFormChangeDetection.

Referenced by assFlashQuestion\buildTestPresentationConfig(), and assFileUpload\buildTestPresentationConfig().

104  {
105  $this->enableFormChangeDetection = $enableFormChangeDetection;
106  return $this;
107  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ setIsUnchangedAnswerPossible()

ilTestQuestionConfig::setIsUnchangedAnswerPossible (   $isUnchangedAnswerPossible)

Set if the saving of an unchanged answer is supported with an additional checkbox.

Parameters
bool$isUnchangedAnswerPossible
Returns
ilTestQuestionConfig

Definition at line 63 of file class.ilTestQuestionConfig.php.

References $isUnchangedAnswerPossible, and isUnchangedAnswerPossible().

Referenced by assOrderingHorizontal\buildTestPresentationConfig(), and assOrderingQuestion\buildTestPresentationConfig().

64  {
66  return $this;
67  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isUnchangedAnswerPossible()
Return if the saving of an unchanged answer is supported with an additional checkbox.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPreviousPassSolutionReuseAllowed()

ilTestQuestionConfig::setPreviousPassSolutionReuseAllowed (   $previousPassSolutionReuseAllowed)
Parameters
bool$previousPassSolutionReuseAllowed

Definition at line 143 of file class.ilTestQuestionConfig.php.

References $previousPassSolutionReuseAllowed.

143  : void
144  {
145  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
146  }

◆ setScoreEmptyMcSolutionsEnabled()

ilTestQuestionConfig::setScoreEmptyMcSolutionsEnabled (   $scoreEmptyMcSolutionsEnabled)
Parameters
bool$scoreEmptyMcSolutionsEnabled

Definition at line 183 of file class.ilTestQuestionConfig.php.

References $scoreEmptyMcSolutionsEnabled.

183  : void
184  {
185  $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
186  }

◆ setSolutionInitiallyPrefilled()

ilTestQuestionConfig::setSolutionInitiallyPrefilled (   $solutionInitiallyPrefilled)
Parameters
bool$solutionInitiallyPrefilledhey: prevPassSolutions - streamlined signatures
Returns
ilTestQuestionConfig $this hey.

Definition at line 164 of file class.ilTestQuestionConfig.php.

References $solutionInitiallyPrefilled.

165  {
166  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
167  // hey: prevPassSolutions - streamlined signatures
168  return $this;
169  // hey.
170  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ setUseUnchangedAnswerLabel()

ilTestQuestionConfig::setUseUnchangedAnswerLabel (   $useUnchangedAnswerLabel)

Return the label to be used for the 'use unchanged answer' checkbox.

Parameters
string$useUnchangedAnswerLabel
Returns
ilTestQuestionConfig

Definition at line 83 of file class.ilTestQuestionConfig.php.

References $useUnchangedAnswerLabel.

84  {
85  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
86  return $this;
87  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ setWorkedThrough()

ilTestQuestionConfig::setWorkedThrough (   $workedThrough)
Parameters
bool$workedThrough
Returns
$this

Definition at line 200 of file class.ilTestQuestionConfig.php.

References $workedThrough.

201  {
202  $this->workedThrough = $workedThrough;
203  return $this;
204  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $enableBackgroundChangeDetection

ilTestQuestionConfig::$enableBackgroundChangeDetection = false
protected

◆ $enableFormChangeDetection

ilTestQuestionConfig::$enableFormChangeDetection = true
protected

◆ $isUnchangedAnswerPossible

ilTestQuestionConfig::$isUnchangedAnswerPossible = false
protected

◆ $previousPassSolutionReuseAllowed

ilTestQuestionConfig::$previousPassSolutionReuseAllowed = false
protected

◆ $scoreEmptyMcSolutionsEnabled

ilTestQuestionConfig::$scoreEmptyMcSolutionsEnabled = false
protected

◆ $solutionInitiallyPrefilled

ilTestQuestionConfig::$solutionInitiallyPrefilled = false
protected

◆ $useUnchangedAnswerLabel

ilTestQuestionConfig::$useUnchangedAnswerLabel = ''
protected

◆ $workedThrough

ilTestQuestionConfig::$workedThrough = false
protected

Definition at line 37 of file class.ilTestQuestionConfig.php.

Referenced by isWorkedThrough(), and setWorkedThrough().


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