ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $lng.

29  {
30  global $lng;
31  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
32  }
global $lng
Definition: privfeed.php:17

Member Function Documentation

◆ getUseUnchangedAnswerLabel()

ilTestQuestionConfig::getUseUnchangedAnswerLabel ( )

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

Returns
string

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

References $useUnchangedAnswerLabel.

◆ isBackgroundChangeDetectionEnabled()

ilTestQuestionConfig::isBackgroundChangeDetectionEnabled ( )

Return if the detection of background changes is enabled.

Returns
bool

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

References $enableBackgroundChangeDetection.

◆ isFormChangeDetectionEnabled()

ilTestQuestionConfig::isFormChangeDetectionEnabled ( )

Return if the detection of form changes is enabled.

Returns
bool

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

References $enableFormChangeDetection.

◆ isPreviousPassSolutionReuseAllowed()

ilTestQuestionConfig::isPreviousPassSolutionReuseAllowed ( )
Returns
bool

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

References $previousPassSolutionReuseAllowed.

◆ isScoreEmptyMcSolutionsEnabled()

ilTestQuestionConfig::isScoreEmptyMcSolutionsEnabled ( )
Returns
bool

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

References $scoreEmptyMcSolutionsEnabled.

◆ isSolutionInitiallyPrefilled()

ilTestQuestionConfig::isSolutionInitiallyPrefilled ( )
Returns
bool

Definition at line 138 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 38 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 176 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 110 of file class.ilTestQuestionConfig.php.

References $enableBackgroundChangeDetection.

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

◆ setFormChangeDetectionEnabled()

ilTestQuestionConfig::setFormChangeDetectionEnabled (   $enableFormChangeDetection)

Set if the detection of form changes is enabled.

Parameters
bool$enableFormChangeDetection
Returns
ilTestQuestionConfig

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

References $enableFormChangeDetection.

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

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

References $isUnchangedAnswerPossible, and isUnchangedAnswerPossible().

49  {
51  return $this;
52  }
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 128 of file class.ilTestQuestionConfig.php.

References $previousPassSolutionReuseAllowed.

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

◆ setScoreEmptyMcSolutionsEnabled()

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

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

References $scoreEmptyMcSolutionsEnabled.

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

◆ setSolutionInitiallyPrefilled()

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

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

References $solutionInitiallyPrefilled.

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

◆ setUseUnchangedAnswerLabel()

ilTestQuestionConfig::setUseUnchangedAnswerLabel (   $useUnchangedAnswerLabel)

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

Parameters
string$useUnchangedAnswerLabel
Returns
ilTestQuestionConfig

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

References $useUnchangedAnswerLabel.

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

◆ setWorkedThrough()

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

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

References $workedThrough.

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

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: