ILIAS  release_8 Revision v8.24
class.ilTestQuestionConfig.php
Go to the documentation of this file.
1<?php
2
19// fau: testNav - new class ilTestQuestionConfig.
24{
25 protected $isUnchangedAnswerPossible = false;
29
30 // hey: prevPassSolutions - previous solution adopted
32 protected $solutionInitiallyPrefilled = false;
33 // hey.
34
36
37 protected $workedThrough = false;
38
42 public function __construct()
43 {
44 global $DIC;
45 $lng = $DIC['lng'];
46 $this->useUnchangedAnswerLabel = $lng->txt('tst_unchanged_answer_is_correct');
47 }
48
53 public function isUnchangedAnswerPossible(): bool
54 {
56 }
57
64 {
66 return $this;
67 }
68
73 public function getUseUnchangedAnswerLabel(): string
74 {
76 }
77
84 {
85 $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
86 return $this;
87 }
88
93 public function isFormChangeDetectionEnabled(): bool
94 {
96 }
97
104 {
105 $this->enableFormChangeDetection = $enableFormChangeDetection;
106 return $this;
107 }
108
114 {
116 }
117
126 {
127 $this->enableBackgroundChangeDetection = $enableBackgroundChangeDetection;
128 return $this;
129 }
130
131 // hey: prevPassSolutions - extension or fix or anything sensefull in the current fixing work :-D
136 {
138 }
139
144 {
145 $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
146 }
147 // hey.
148
149 // hey: prevPassSolutions - previous solution adopted
153 public function isSolutionInitiallyPrefilled(): bool
154 {
156 }
157
165 {
166 $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
167 // hey: prevPassSolutions - streamlined signatures
168 return $this;
169 // hey.
170 }
171
175 public function isScoreEmptyMcSolutionsEnabled(): bool
176 {
178 }
179
184 {
185 $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
186 }
187
191 public function isWorkedThrough(): bool
192 {
194 }
195
201 {
202 $this->workedThrough = $workedThrough;
203 return $this;
204 }
205 // hey.
206}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setUseUnchangedAnswerLabel($useUnchangedAnswerLabel)
Return the label to be used for the 'use unchanged answer' checkbox.
setSolutionInitiallyPrefilled($solutionInitiallyPrefilled)
isFormChangeDetectionEnabled()
Return if the detection of form changes is enabled.
setFormChangeDetectionEnabled($enableFormChangeDetection)
Set if the detection of form changes is enabled.
isUnchangedAnswerPossible()
Return if the saving of an unchanged answer is supported with an additional checkbox.
isBackgroundChangeDetectionEnabled()
Return if the detection of background changes is enabled.
getUseUnchangedAnswerLabel()
Return the label to be used for the 'use unchanged answer' checkbox.
__construct()
ilTestQuestionConfig constructor.
setBackgroundChangeDetectionEnabled($enableBackgroundChangeDetection)
Set if the detection of background changes is enabled This is set by Java and Flash questions to poll...
setIsUnchangedAnswerPossible($isUnchangedAnswerPossible)
Set if the saving of an unchanged answer is supported with an additional checkbox.
setScoreEmptyMcSolutionsEnabled($scoreEmptyMcSolutionsEnabled)
setPreviousPassSolutionReuseAllowed($previousPassSolutionReuseAllowed)
global $DIC
Definition: feed.php:28
$lng