ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
118 // hey: prevPassSolutions - extension or fix or anything sensefull in the current fixing work :-D
123 {
125 }
126
131 {
132 $this->previousPassSolutionReuseAllowed = $previousPassSolutionReuseAllowed;
133 }
134 // hey.
135
136 // hey: prevPassSolutions - previous solution adopted
140 public function isSolutionInitiallyPrefilled(): bool
141 {
143 }
144
152 {
153 $this->solutionInitiallyPrefilled = $solutionInitiallyPrefilled;
154 // hey: prevPassSolutions - streamlined signatures
155 return $this;
156 // hey.
157 }
158
162 public function isScoreEmptyMcSolutionsEnabled(): bool
163 {
165 }
166
171 {
172 $this->scoreEmptyMcSolutionsEnabled = $scoreEmptyMcSolutionsEnabled;
173 }
174
178 public function isWorkedThrough(): bool
179 {
181 }
182
188 {
189 $this->workedThrough = $workedThrough;
190 return $this;
191 }
192 // hey.
193}
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.
setIsUnchangedAnswerPossible($isUnchangedAnswerPossible)
Set if the saving of an unchanged answer is supported with an additional checkbox.
setScoreEmptyMcSolutionsEnabled($scoreEmptyMcSolutionsEnabled)
setPreviousPassSolutionReuseAllowed($previousPassSolutionReuseAllowed)
global $lng
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26