ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestQuestionConfig Class Reference

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

Test Question configuration.

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

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionConfig::__construct ( )

ilTestQuestionConfig constructor.

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

References $DIC, and $lng.

29  {
30  global $DIC;
31  $lng = $DIC['lng'];
32  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
33  }
global $DIC
Definition: saml.php:7
$lng

Member Function Documentation

◆ getUseUnchangedAnswerLabel()

ilTestQuestionConfig::getUseUnchangedAnswerLabel ( )

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

Returns
string

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

References $useUnchangedAnswerLabel.

◆ isBackgroundChangeDetectionEnabled()

ilTestQuestionConfig::isBackgroundChangeDetectionEnabled ( )

Return if the detection of background changes is enabled.

Returns
bool

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

References $enableBackgroundChangeDetection.

◆ isFormChangeDetectionEnabled()

ilTestQuestionConfig::isFormChangeDetectionEnabled ( )

Return if the detection of form changes is enabled.

Returns
bool

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

References $enableFormChangeDetection.

◆ isPreviousPassSolutionReuseAllowed()

ilTestQuestionConfig::isPreviousPassSolutionReuseAllowed ( )
Returns
bool

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

References $previousPassSolutionReuseAllowed.

◆ isScoreEmptyMcSolutionsEnabled()

ilTestQuestionConfig::isScoreEmptyMcSolutionsEnabled ( )
Returns
bool

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

References $scoreEmptyMcSolutionsEnabled.

◆ isSolutionInitiallyPrefilled()

ilTestQuestionConfig::isSolutionInitiallyPrefilled ( )
Returns
bool

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

References $solutionInitiallyPrefilled.

◆ isUnchangedAnswerPossible()

ilTestQuestionConfig::isUnchangedAnswerPossible ( )

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

Returns
bool

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

References $isUnchangedAnswerPossible.

Referenced by setIsUnchangedAnswerPossible().

+ Here is the caller graph for this function:

◆ isWorkedThrough()

ilTestQuestionConfig::isWorkedThrough ( )
Returns
bool

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

References $workedThrough.

◆ 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 111 of file class.ilTestQuestionConfig.php.

References $enableBackgroundChangeDetection.

112  {
113  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
114  return $this;
115  }

◆ setFormChangeDetectionEnabled()

ilTestQuestionConfig::setFormChangeDetectionEnabled (   $enableFormChangeDetection)

Set if the detection of form changes is enabled.

Parameters
bool$enableFormChangeDetection
Returns
ilTestQuestionConfig

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

References $enableFormChangeDetection.

90  {
91  $this->enableFormChangeDetection = $enableFormChangeDetection;
92  return $this;
93  }

◆ 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 49 of file class.ilTestQuestionConfig.php.

References $isUnchangedAnswerPossible, and isUnchangedAnswerPossible().

50  {
52  return $this;
53  }
isUnchangedAnswerPossible()
Return if the saving of an unchanged answer is supported with an additional checkbox.
+ Here is the call graph for this function:

◆ setPreviousPassSolutionReuseAllowed()

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

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

References $previousPassSolutionReuseAllowed.

130  {
131  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
132  }

◆ setScoreEmptyMcSolutionsEnabled()

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

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

References $scoreEmptyMcSolutionsEnabled.

170  {
171  $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
172  }

◆ setSolutionInitiallyPrefilled()

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

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

References $solutionInitiallyPrefilled.

151  {
152  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
153  // hey: prevPassSolutions - streamlined signatures
154  return $this;
155  // hey.
156  }

◆ setUseUnchangedAnswerLabel()

ilTestQuestionConfig::setUseUnchangedAnswerLabel (   $useUnchangedAnswerLabel)

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

Parameters
string$useUnchangedAnswerLabel
Returns
ilTestQuestionConfig

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

References $useUnchangedAnswerLabel.

70  {
71  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
72  return $this;
73  }

◆ setWorkedThrough()

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

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

References $workedThrough.

187  {
188  $this->workedThrough = $workedThrough;
189  return $this;
190  }

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 23 of file class.ilTestQuestionConfig.php.

Referenced by isWorkedThrough(), and setWorkedThrough().


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