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;
15
16 // hey: prevPassSolutions - previous solution adopted
18 protected $solutionInitiallyPrefilled = false;
19 // hey.
20
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
59 {
61 }
62
69 {
70 $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
71 return $this;
72 }
73
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 {
179 }
180
186 {
187 $this->workedThrough = $workedThrough;
188 return $this;
189 }
190 // hey.
191}
An exception for terminatinating execution or to throw for unit testing.
Test Question configuration.
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 $lng
Definition: privfeed.php:17