ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $lng;
31  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
32  }
33 
38  public function isUnchangedAnswerPossible()
39  {
41  }
42 
49  {
51  return $this;
52  }
53 
58  public function getUseUnchangedAnswerLabel()
59  {
61  }
62 
69  {
70  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
71  return $this;
72  }
73 
78  public function isFormChangeDetectionEnabled()
79  {
81  }
82 
89  {
90  $this->enableFormChangeDetection = $enableFormChangeDetection;
91  return $this;
92  }
93 
99  {
101  }
102 
111  {
112  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
113  return $this;
114  }
115 
116  // hey: prevPassSolutions - extension or fix or anything sensefull in the current fixing work :-D
121  {
123  }
124 
129  {
130  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
131  }
132  // hey.
133 
134  // hey: prevPassSolutions - previous solution adopted
139  {
141  }
142 
150  {
151  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
152  // hey: prevPassSolutions - streamlined signatures
153  return $this;
154  // hey.
155  }
156 
161  {
163  }
164 
169  {
170  $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
171  }
172 
176  public function isWorkedThrough()
177  {
178  return $this->workedThrough;
179  }
180 
186  {
187  $this->workedThrough = $workedThrough;
188  return $this;
189  }
190  // hey.
191 }
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.
getUseUnchangedAnswerLabel()
Return the label to be used for the &#39;use unchanged answer&#39; checkbox.
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...
global $lng
Definition: privfeed.php:17
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.