ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTestQuestionConfig.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 // fau: testNav - new class ilTestQuestionConfig.
5 
10 {
11  protected $isUnchangedAnswerPossible = false;
12  protected $useUnchangedAnswerLabel = '';
13  protected $enableFormChangeDetection = true;
15 
16  // hey: prevPassSolutions - previous solution adopted
18  protected $solutionInitiallyPrefilled = false;
19  // hey.
20 
21  protected $scoreEmptyMcSolutionsEnabled = false;
22 
23  protected $workedThrough = false;
24 
28  public function __construct()
29  {
30  global $DIC;
31  $lng = $DIC['lng'];
32  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
33  }
34 
39  public function isUnchangedAnswerPossible()
40  {
42  }
43 
50  {
52  return $this;
53  }
54 
59  public function getUseUnchangedAnswerLabel()
60  {
62  }
63 
70  {
71  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
72  return $this;
73  }
74 
79  public function isFormChangeDetectionEnabled()
80  {
82  }
83 
90  {
91  $this->enableFormChangeDetection = $enableFormChangeDetection;
92  return $this;
93  }
94 
100  {
102  }
103 
112  {
113  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
114  return $this;
115  }
116 
117  // hey: prevPassSolutions - extension or fix or anything sensefull in the current fixing work :-D
122  {
124  }
125 
130  {
131  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
132  }
133  // hey.
134 
135  // hey: prevPassSolutions - previous solution adopted
140  {
142  }
143 
151  {
152  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
153  // hey: prevPassSolutions - streamlined signatures
154  return $this;
155  // hey.
156  }
157 
162  {
164  }
165 
170  {
171  $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
172  }
173 
177  public function isWorkedThrough()
178  {
179  return $this->workedThrough;
180  }
181 
187  {
188  $this->workedThrough = $workedThrough;
189  return $this;
190  }
191  // hey.
192 }
setFormChangeDetectionEnabled($enableFormChangeDetection)
Set if the detection of form changes is enabled.
Test Question configuration.
setUseUnchangedAnswerLabel($useUnchangedAnswerLabel)
Return the label to be used for the &#39;use unchanged answer&#39; checkbox.
setSolutionInitiallyPrefilled($solutionInitiallyPrefilled)
setIsUnchangedAnswerPossible($isUnchangedAnswerPossible)
Set if the saving of an unchanged answer is supported with an additional checkbox.
global $DIC
Definition: saml.php:7
getUseUnchangedAnswerLabel()
Return the label to be used for the &#39;use unchanged answer&#39; checkbox.
$lng
isBackgroundChangeDetectionEnabled()
Return if the detection of background changes is enabled.
setPreviousPassSolutionReuseAllowed($previousPassSolutionReuseAllowed)
setScoreEmptyMcSolutionsEnabled($scoreEmptyMcSolutionsEnabled)
__construct()
ilTestQuestionConfig constructor.
setBackgroundChangeDetectionEnabled($enableBackgroundChangeDetection)
Set if the detection of background changes is enabled This is set by Java and Flash questions to poll...
isFormChangeDetectionEnabled()
Return if the detection of form changes is enabled.
isUnchangedAnswerPossible()
Return if the saving of an unchanged answer is supported with an additional checkbox.