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;
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
55 {
57 }
58
65 {
66 $this->useUnchangedAnswerLabel = $useUnchangedAnswerLabel;
67 return $this;
68 }
69
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}
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.
setPreviousPassSolutionReuseAllowed($previousPassSolutionReuseAllowed)
global $lng
Definition: privfeed.php:17