ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 

Protected Attributes

 $isUnchangedAnswerPossible = false
 
 $useUnchangedAnswerLabel = ''
 
 $enableFormChangeDetection = true
 
 $enableBackgroundChangeDetection = false
 
 $previousPassSolutionReuseAllowed = false
 
 $solutionInitiallyPrefilled = 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 24 of file class.ilTestQuestionConfig.php.

References $lng.

25  {
26  global $lng;
27  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
28  }
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 54 of file class.ilTestQuestionConfig.php.

References $useUnchangedAnswerLabel.

◆ isBackgroundChangeDetectionEnabled()

ilTestQuestionConfig::isBackgroundChangeDetectionEnabled ( )

Return if the detection of background changes is enabled.

Returns
bool

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

References $enableBackgroundChangeDetection.

◆ isFormChangeDetectionEnabled()

ilTestQuestionConfig::isFormChangeDetectionEnabled ( )

Return if the detection of form changes is enabled.

Returns
bool

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

References $enableFormChangeDetection.

◆ isPreviousPassSolutionReuseAllowed()

ilTestQuestionConfig::isPreviousPassSolutionReuseAllowed ( )
Returns
bool

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

References $previousPassSolutionReuseAllowed.

◆ isSolutionInitiallyPrefilled()

ilTestQuestionConfig::isSolutionInitiallyPrefilled ( )
Returns
bool

Definition at line 134 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 34 of file class.ilTestQuestionConfig.php.

References $isUnchangedAnswerPossible.

Referenced by setIsUnchangedAnswerPossible().

+ Here is the caller graph for this function:

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

References $enableBackgroundChangeDetection.

107  {
108  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
109  return $this;
110  }

◆ setFormChangeDetectionEnabled()

ilTestQuestionConfig::setFormChangeDetectionEnabled (   $enableFormChangeDetection)

Set if the detection of form changes is enabled.

Parameters
bool$enableFormChangeDetection
Returns
ilTestQuestionConfig

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

References $enableFormChangeDetection.

85  {
86  $this->enableFormChangeDetection = $enableFormChangeDetection;
87  return $this;
88  }

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

References $isUnchangedAnswerPossible, and isUnchangedAnswerPossible().

45  {
47  return $this;
48  }
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 124 of file class.ilTestQuestionConfig.php.

References $previousPassSolutionReuseAllowed.

125  {
126  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
127  }

◆ setSolutionInitiallyPrefilled()

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

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

References $solutionInitiallyPrefilled.

146  {
147  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
148  // hey: prevPassSolutions - streamlined signatures
149  return $this;
150  // hey.
151  }

◆ setUseUnchangedAnswerLabel()

ilTestQuestionConfig::setUseUnchangedAnswerLabel (   $useUnchangedAnswerLabel)

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

Parameters
string$useUnchangedAnswerLabel
Returns
ilTestQuestionConfig

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

References $useUnchangedAnswerLabel.

65  {
66  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
67  return $this;
68  }

Field Documentation

◆ $enableBackgroundChangeDetection

ilTestQuestionConfig::$enableBackgroundChangeDetection = false
protected

◆ $enableFormChangeDetection

ilTestQuestionConfig::$enableFormChangeDetection = true
protected

◆ $isUnchangedAnswerPossible

ilTestQuestionConfig::$isUnchangedAnswerPossible = false
protected

◆ $previousPassSolutionReuseAllowed

ilTestQuestionConfig::$previousPassSolutionReuseAllowed = false
protected

◆ $solutionInitiallyPrefilled

ilTestQuestionConfig::$solutionInitiallyPrefilled = false
protected

◆ $useUnchangedAnswerLabel

ilTestQuestionConfig::$useUnchangedAnswerLabel = ''
protected

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