ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
24  public function __construct()
25  {
26  global $lng;
27  $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
28  }
29 
34  public function isUnchangedAnswerPossible()
35  {
37  }
38 
45  {
47  return $this;
48  }
49 
54  public function getUseUnchangedAnswerLabel()
55  {
57  }
58 
65  {
66  $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
67  return $this;
68  }
69 
74  public function isFormChangeDetectionEnabled()
75  {
77  }
78 
85  {
86  $this->enableFormChangeDetection = $enableFormChangeDetection;
87  return $this;
88  }
89 
95  {
97  }
98 
107  {
108  $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
109  return $this;
110  }
111 
112  // hey: prevPassSolutions - extension or fix or anything sensefull in the current fixing work :-D
117  {
119  }
120 
125  {
126  $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
127  }
128  // hey.
129 
130  // hey: prevPassSolutions - previous solution adopted
135  {
137  }
138 
146  {
147  $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
148  // hey: prevPassSolutions - streamlined signatures
149  return $this;
150  // hey.
151  }
152  // hey.
153 }
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)
__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.