ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour Class Reference
+ Inheritance diagram for ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour:
+ Collaboration diagram for ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour:

Public Member Functions

 __construct (protected int $number_of_tries=0, protected bool $block_after_passed_enabled=false, protected ?string $pass_waiting=null, protected bool $processing_time_enabled=false, protected ?string $processing_time=null, protected bool $reset_processing_time=false, protected int $kiosk_mode=0, protected bool $examid_in_test_attempt_enabled=false)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 
 getNumberOfTries ()
 
 withNumberOfTries (int $number_of_tries)
 
 getBlockAfterPassedEnabled ()
 
 withBlockAfterPassedEnabled (bool $block_after_passed_enabled)
 
 getPassWaiting ()
 
 withPassWaiting (?string $pass_waiting)
 
 getPassWaitingEnabled ()
 
 getProcessingTimeEnabled ()
 
 withProcessingTimeEnabled (bool $processing_time_enabled)
 
 getProcessingTime ()
 
 withProcessingTime (?string $processing_time)
 
 getProcessingTimeAsMinutes ()
 
 getResetProcessingTime ()
 
 withResetProcessingTime (bool $reset_processing_time)
 
 getKioskMode ()
 
 withKioskMode (int $kiosk_mode)
 
 getKioskModeEnabled ()
 
 getShowTitleInKioskMode ()
 
 getShowParticipantNameInKioskMode ()
 
 getExamIdInTestAttemptEnabled ()
 
 withExamIdInTestAttemptEnabled (bool $exam_id_in_test_pass_enabled)
 
 toExport ()
 Transform the object into a simple, associative array. More...
 
- Public Member Functions inherited from ILIAS\Test\Settings\TestSettings
 __construct ()
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 
 toExport ()
 Transform the object into a simple, associative array. More...
 

Static Public Member Functions

static fromExport (array $data)
 Creates an instance of the object from an array. More...
 
static fromExport (array $data)
 Creates an instance of the object from an array. More...
 

Private Member Functions

 getInputLimitAttempts (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
 
 getInputForceWaitingBetweenAttempts (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
 
 getSubInputsForceWaitingBetweenAttempts (\ilLanguage $lng, FieldFactory $f, Refinery $refinery)
 
 cleanupPassWaiting (?string $pass_waiting)
 
 getInputTimeLimitForCompletion (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
 
 getInputKioskMode (\ilLanguage $lng, FieldFactory $f, Refinery $refinery)
 

Private Attributes

const DEFAULT_PROCESSING_TIME_MINUTES = 90
 

Detailed Description

Definition at line 30 of file SettingsTestBehaviour.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::__construct ( protected int  $number_of_tries = 0,
protected bool  $block_after_passed_enabled = false,
protected ?string  $pass_waiting = null,
protected bool  $processing_time_enabled = false,
protected ?string  $processing_time = null,
protected bool  $reset_processing_time = false,
protected int  $kiosk_mode = 0,
protected bool  $examid_in_test_attempt_enabled = false 
)

Definition at line 34 of file SettingsTestBehaviour.php.

43 {
44 $this->pass_waiting = $this->cleanupPassWaiting($this->pass_waiting);
46 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour\cleanupPassWaiting().

+ Here is the call graph for this function:

Member Function Documentation

◆ cleanupPassWaiting()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::cleanupPassWaiting ( ?string  $pass_waiting)
private

Definition at line 203 of file SettingsTestBehaviour.php.

203 : ?string
204 {
205 if ($pass_waiting === null || $pass_waiting === '') {
206 return null;
207 }
208
209 $pass_waiting_array = array_map(
210 fn(string $v) => strval((int) $v),
211 explode(':', $pass_waiting)
212 );
213 if (count($pass_waiting_array) === 3) {
214 return implode(':', $pass_waiting_array);
215 }
216
217 $month = array_shift($pass_waiting_array);
218 $pass_waiting_array[0] = strval((int) $pass_waiting_array[0] + (int) $month * 31);
219 return implode(':', $pass_waiting_array);
220 }

Referenced by ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour\__construct().

+ Here is the caller graph for this function:

◆ fromExport()

static ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::fromExport ( array  $data)
static

Creates an instance of the object from an array.

This static factory method is responsible for constructing a new object instance from the provided array data. It should validate the input and may throw an exception if the data is incomplete or malformed.

Parameters
ExportableArray$dataThe data to restore the object from
Returns
static A new instance of the class

Implements ILIAS\Test\ExportImport\Exportable.

Definition at line 523 of file SettingsTestBehaviour.php.

523 : static
524 {
525 return new self(
526 (int) $data['nr_of_tries'],
527 (bool) $data['block_after_passed'],
528 $data['pass_waiting'],
529 (bool) $data['enable_processing_time'],
530 $data['processing_time'],
531 (bool) $data['reset_processing_time'],
532 (int) $data['kiosk_mode'],
533 (bool) $data['examid_in_test_pass']
534 );
535 }

References $data, and ILIAS\Repository\int().

Referenced by ILIAS\Test\Settings\MainSettings\MainSettings\fromExport().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBlockAfterPassedEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getBlockAfterPassedEnabled ( )

Definition at line 390 of file SettingsTestBehaviour.php.

390 : bool
391 {
392 return $this->block_after_passed_enabled;
393 }

◆ getExamIdInTestAttemptEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getExamIdInTestAttemptEnabled ( )

Definition at line 497 of file SettingsTestBehaviour.php.

497 : bool
498 {
499 return $this->examid_in_test_attempt_enabled;
500 }

◆ getInputForceWaitingBetweenAttempts()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getInputForceWaitingBetweenAttempts ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
array  $environment 
)
private

Definition at line 136 of file SettingsTestBehaviour.php.

141 : FormInput {
142 $constraint = $refinery->custom()->constraint(
143 static function (?string $vs): bool {
144 return $vs !== '0:0:0';
145 },
146 sprintf($lng->txt('not_greater_than'), $lng->txt('tst_pass_waiting_time'), 0)
147 );
148
149 $trafo = $refinery->custom()->transformation(
150 static function (?array $vs): ?string {
151 return $vs === null ? null : implode(':', $vs);
152 }
153 );
154
155 $force_waiting_between_attempts = $f->optionalGroup(
156 $this->getSubInputsForceWaitingBetweenAttempts($lng, $f, $refinery, ),
157 $lng->txt('tst_pass_waiting_enabled'),
158 $lng->txt('tst_pass_waiting_info')
159 )->withValue(null)
160 ->withAdditionalTransformation($trafo);
161
162 if ($this->getPassWaitingEnabled()) {
163 list($days, $hours, $minutes) = explode(':', $this->getPassWaiting());
164 $force_waiting_between_attempts = $force_waiting_between_attempts->withValue(
165 [
166 'days' => $days,
167 'hours' => $hours,
168 'minutes' => $minutes
169 ]
170 );
171 }
172
173 if (!$environment['participant_data_exists']) {
174 return $force_waiting_between_attempts->withAdditionalTransformation($constraint);
175 }
176
177 return $force_waiting_between_attempts->withDisabled(true);
178 }
getSubInputsForceWaitingBetweenAttempts(\ilLanguage $lng, FieldFactory $f, Refinery $refinery)
withValue($value)
Get an input like this with another value displayed on the client side.
Definition: Group.php:61
global $lng
Definition: privfeed.php:31

◆ getInputKioskMode()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getInputKioskMode ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery 
)
private

Definition at line 285 of file SettingsTestBehaviour.php.

289 : FormInput {
290 $trafo = $refinery->custom()->transformation(
291 static function (?array $vs): ?int {
292 if ($vs === null) {
293 return 0;
294 }
295
296 $kiosk_mode = 1;
297
298 if ($vs['show_title'] === true) {
299 $kiosk_mode += 2;
300 }
301
302 if ($vs['show_participant_name'] === true) {
303 $kiosk_mode += 4;
304 }
305
306 return $kiosk_mode;
307 }
308 );
309
310 $sub_inputs_kiosk_mode['show_title'] = $f->checkbox($lng->txt('kiosk_show_title'));
311
312 $sub_inputs_kiosk_mode['show_participant_name'] = $f->checkbox($lng->txt('kiosk_show_participant'));
313
314 $kiosk_mode = $f->optionalGroup(
315 $sub_inputs_kiosk_mode,
316 $lng->txt('kiosk'),
317 $lng->txt('kiosk_description')
318 )->withValue(null)
319 ->withAdditionalTransformation($trafo);
320
321 if (!$this->getKioskMode()) {
322 return $kiosk_mode;
323 }
324
325 return $kiosk_mode->withValue([
326 'show_title' => $this->getShowTitleInKioskMode(),
327 'show_participant_name' => $this->getShowParticipantNameInKioskMode()
328 ]);
329 }

◆ getInputLimitAttempts()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getInputLimitAttempts ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
array  $environment 
)
private

Definition at line 82 of file SettingsTestBehaviour.php.

87 : FormInput {
88 $trafo = $refinery->custom()->transformation(
89 static function (?array $vs): array {
90 if ($vs === null) {
91 return [
92 'number_of_available_attempts' => 0,
93 'block_after_passed' => false
94 ];
95 }
96
97 return $vs;
98 }
99 );
100
101 $sub_inputs['number_of_available_attempts'] = $f->numeric($lng->txt('tst_nr_of_tries'));
102 $sub_inputs['block_after_passed'] = $f->checkbox(
103 $lng->txt('tst_block_passes_after_passed'),
104 $lng->txt('tst_block_passes_after_passed_info')
105 );
106
107 if (!$environment['participant_data_exists']) {
108 $sub_inputs['number_of_available_attempts'] =
109 $sub_inputs['number_of_available_attempts']->withRequired(true)
110 ->withAdditionalTransformation($refinery->int()->isGreaterThan(0));
111 }
112
113 $limit_attempts = $f->optionalGroup(
114 $sub_inputs,
115 $lng->txt('tst_limit_nr_of_tries'),
116 $lng->txt('tst_nr_of_tries_desc')
117 )->withValue(null)
118 ->withAdditionalTransformation($trafo);
119
120 if ($this->getNumberOfTries() > 0) {
121 $limit_attempts = $limit_attempts->withValue(
122 [
123 'number_of_available_attempts' => $this->getNumberOfTries(),
124 'block_after_passed' => $this->getBlockAfterPassedEnabled()
125 ]
126 );
127 }
128
129 if (!$environment['participant_data_exists']) {
130 return $limit_attempts;
131 }
132
133 return $limit_attempts->withDisabled(true);
134 }

◆ getInputTimeLimitForCompletion()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getInputTimeLimitForCompletion ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
array  $environment 
)
private

Definition at line 222 of file SettingsTestBehaviour.php.

227 : FormInput {
228 $trafo = $refinery->custom()->transformation(
229 static function (?array $vs): array {
230 if ($vs === null) {
231 return [
232 'processing_time_limit' => false,
233 'time_limit_for_completion_value' => null,
234 'reset_time_limit_for_completion_by_attempt' => false
235 ];
236 }
237
238 $vs['processing_time_limit'] = true;
239 $vs['time_limit_for_completion_value'] = sprintf(
240 '%02d:%02d:00',
241 floor(
242 $vs['time_limit_for_completion_value'] / 60
243 ),
244 $vs['time_limit_for_completion_value'] % 60
245 );
246 return $vs;
247 }
248 );
249
250 $sub_inputs_time_limit_for_completion['time_limit_for_completion_value'] = $f
251 ->numeric(
252 $lng->txt('tst_processing_time_duration')
253 )
254 ->withRequired(true)
255 ->withAdditionalTransformation($refinery->int()->isGreaterThan(0))
256 ->withValue(self::DEFAULT_PROCESSING_TIME_MINUTES);
257 $sub_inputs_time_limit_for_completion['reset_time_limit_for_completion_by_attempt'] = $f->checkbox(
258 $lng->txt('tst_reset_processing_time'),
259 $lng->txt('tst_reset_processing_time_desc')
260 );
261
262 $time_limit_for_completion = $f->optionalGroup(
263 $sub_inputs_time_limit_for_completion,
264 $lng->txt('tst_processing_time'),
265 $lng->txt('tst_processing_time_desc')
266 )->withValue(null)
267 ->withAdditionalTransformation($trafo);
268
269 if ($this->getProcessingTimeEnabled()) {
270 $time_limit_for_completion = $time_limit_for_completion->withValue(
271 [
272 'time_limit_for_completion_value' => (int) $this->getProcessingTimeAsMinutes(),
273 'reset_time_limit_for_completion_by_attempt' => (bool) $this->getResetProcessingTime()
274 ]
275 );
276 }
277
278 if (!$environment['participant_data_exists']) {
279 return $time_limit_for_completion;
280 }
281
282 return $time_limit_for_completion->withDisabled(true);
283 }

◆ getKioskMode()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getKioskMode ( )

Definition at line 470 of file SettingsTestBehaviour.php.

470 : int
471 {
472 return $this->kiosk_mode;
473 }

◆ getKioskModeEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getKioskModeEnabled ( )

Definition at line 482 of file SettingsTestBehaviour.php.

482 : bool
483 {
484 return ($this->kiosk_mode & 1) > 0;
485 }

◆ getNumberOfTries()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getNumberOfTries ( )

Definition at line 378 of file SettingsTestBehaviour.php.

378 : int
379 {
380 return $this->number_of_tries;
381 }

◆ getPassWaiting()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getPassWaiting ( )

Definition at line 402 of file SettingsTestBehaviour.php.

402 : ?string
403 {
404 return $this->pass_waiting;
405 }

◆ getPassWaitingEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getPassWaitingEnabled ( )

Definition at line 414 of file SettingsTestBehaviour.php.

414 : bool
415 {
416 if ($this->pass_waiting === null) {
417 return false;
418 }
419 if (array_sum(explode(':', $this->pass_waiting)) > 0) {
420 return true;
421 }
422 return false;
423 }

◆ getProcessingTime()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getProcessingTime ( )

Definition at line 437 of file SettingsTestBehaviour.php.

437 : ?string
438 {
439 return $this->processing_time;
440 }

◆ getProcessingTimeAsMinutes()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getProcessingTimeAsMinutes ( )

Definition at line 449 of file SettingsTestBehaviour.php.

449 : int
450 {
451 if ($this->processing_time !== null && preg_match("/(\d{2}):(\d{2}):(\d{2})/is", $this->processing_time, $matches)) {
452 return ((int) $matches[1] * 60) + (int) $matches[2];
453 }
454
456 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getProcessingTimeEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getProcessingTimeEnabled ( )

Definition at line 425 of file SettingsTestBehaviour.php.

425 : bool
426 {
427 return $this->processing_time_enabled;
428 }

◆ getResetProcessingTime()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getResetProcessingTime ( )

Definition at line 458 of file SettingsTestBehaviour.php.

458 : bool
459 {
460 return $this->reset_processing_time;
461 }

◆ getShowParticipantNameInKioskMode()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getShowParticipantNameInKioskMode ( )

Definition at line 492 of file SettingsTestBehaviour.php.

492 : bool
493 {
494 return ($this->kiosk_mode & 4) > 0;
495 }

◆ getShowTitleInKioskMode()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getShowTitleInKioskMode ( )

Definition at line 487 of file SettingsTestBehaviour.php.

487 : bool
488 {
489 return ($this->kiosk_mode & 2) > 0;
490 }

◆ getSubInputsForceWaitingBetweenAttempts()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::getSubInputsForceWaitingBetweenAttempts ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery 
)
private

Definition at line 180 of file SettingsTestBehaviour.php.

184 : array {
185 $sub_inputs_force_waiting_between_attempts['days'] = $f->numeric($lng->txt('days'))
186 ->withAdditionalTransformation($refinery->int()->isGreaterThanOrEqual(0))
187 ->withRequired(true)
188 ->withValue(0);
189 $sub_inputs_force_waiting_between_attempts['hours'] = $f->numeric($lng->txt('hours'))
190 ->withAdditionalTransformation($refinery->int()->isGreaterThanOrEqual(0))
191 ->withAdditionalTransformation($refinery->int()->isLessThanOrEqual(24))
192 ->withRequired(true)
193 ->withValue(0);
194 $sub_inputs_force_waiting_between_attempts['minutes'] = $f->numeric($lng->txt('minutes'))
195 ->withAdditionalTransformation($refinery->int()->isGreaterThanOrEqual(0))
196 ->withAdditionalTransformation($refinery->int()->isLessThanOrEqual(60))
197 ->withRequired(true)
198 ->withValue(0);
199
200 return $sub_inputs_force_waiting_between_attempts;
201 }

◆ toExport()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::toExport ( )

Transform the object into a simple, associative array.

The resulting array represents the object's state and should contain only scalar values, arrays, or other Exportable objects.

Returns
ExportableArray The exportable array representation of the object

Implements ILIAS\Test\ExportImport\Exportable.

Definition at line 509 of file SettingsTestBehaviour.php.

509 : array
510 {
511 return [
512 'nr_of_tries' => $this->getNumberOfTries(),
513 'block_after_passed' => $this->getBlockAfterPassedEnabled(),
514 'pass_waiting' => $this->getPassWaiting(),
515 'enable_processing_time' => $this->getProcessingTimeEnabled(),
516 'processing_time' => $this->getProcessingTime(),
517 'reset_processing_time' => $this->getResetProcessingTime(),
518 'kiosk_mode' => $this->getKioskMode(),
519 'examid_in_test_pass' => $this->getExamIdInTestAttemptEnabled()
520 ];
521 }

◆ toForm()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::toForm ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
?array  $environment = null 
)

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 48 of file SettingsTestBehaviour.php.

53 : FormInput {
54 $inputs['limit_attempts'] = $this->getInputLimitAttempts(
55 $lng,
56 $f,
57 $refinery,
58 $environment
59 );
60 $inputs['force_waiting_between_attempts'] = $this->getInputForceWaitingBetweenAttempts(
61 $lng,
62 $f,
63 $refinery,
64 $environment
65 );
66 $inputs['time_limit_for_completion'] = $this->getInputTimeLimitForCompletion(
67 $lng,
68 $f,
69 $refinery,
70 $environment
71 );
72 $inputs['kiosk_mode'] = $this->getInputKioskMode($lng, $f, $refinery);
73
74 $inputs['show_exam_id'] = $f->checkbox(
75 $lng->txt('examid_in_test_pass'),
76 $lng->txt('examid_in_test_pass_desc')
77 )->withValue($this->getExamIdInTestAttemptEnabled());
78
79 return $f->section($inputs, $lng->txt('tst_settings_header_test_run'));
80 }
getInputForceWaitingBetweenAttempts(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
getInputTimeLimitForCompletion(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
getInputLimitAttempts(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment)
getInputKioskMode(\ilLanguage $lng, FieldFactory $f, Refinery $refinery)

◆ toLog()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::toLog ( AdditionalInformationGenerator  $additional_info)

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 345 of file SettingsTestBehaviour.php.

345 : array
346 {
348 ? $this->getNumberOfTries() : $additional_info->getEnabledDisabledTagForBool(false);
349 if ($this->getNumberOfTries() > 0) {
352 }
353
355 ? $this->getPassWaiting() : $additional_info->getEnabledDisabledTagForBool(false);
356
358 ? $this->getProcessingTimeAsMinutes() : $additional_info->getEnabledDisabledTagForBool(false);
359 if ($this->getProcessingTimeEnabled()) {
362 }
363
364 $log_array[AdditionalInformationGenerator::KEY_TEST_KIOSK_ENABLED] = $additional_info
366 if ($this->getKioskModeEnabled()) {
371 }
372
373 $log_array[AdditionalInformationGenerator::KEY_TEST_SHOW_EXAM_ID] = $additional_info
375 return $log_array;
376 }

References ILIAS\Test\Logging\AdditionalInformationGenerator\getEnabledDisabledTagForBool().

+ Here is the call graph for this function:

◆ toStorage()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::toStorage ( )

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 331 of file SettingsTestBehaviour.php.

331 : array
332 {
333 return [
334 'nr_of_tries' => ['integer', $this->getNumberOfTries()],
335 'block_after_passed' => ['integer', (int) $this->getBlockAfterPassedEnabled()],
336 'pass_waiting' => ['string', $this->getPassWaiting()],
337 'enable_processing_time' => ['integer', (int) $this->getProcessingTimeEnabled()],
338 'processing_time' => ['string', $this->getProcessingTime()],
339 'reset_processing_time' => ['integer', (int) $this->getResetProcessingTime()],
340 'kiosk' => ['integer', $this->getKioskMode()],
341 'examid_in_test_pass' => ['integer', (int) $this->getExamIdInTestAttemptEnabled()]
342 ];
343 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ withBlockAfterPassedEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withBlockAfterPassedEnabled ( bool  $block_after_passed_enabled)

Definition at line 395 of file SettingsTestBehaviour.php.

395 : self
396 {
397 $clone = clone $this;
398 $clone->block_after_passed_enabled = $block_after_passed_enabled;
399 return $clone;
400 }

◆ withExamIdInTestAttemptEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withExamIdInTestAttemptEnabled ( bool  $exam_id_in_test_pass_enabled)

Definition at line 502 of file SettingsTestBehaviour.php.

502 : self
503 {
504 $clone = clone $this;
505 $clone->examid_in_test_attempt_enabled = $exam_id_in_test_pass_enabled;
506 return $clone;
507 }

◆ withKioskMode()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withKioskMode ( int  $kiosk_mode)

Definition at line 475 of file SettingsTestBehaviour.php.

475 : self
476 {
477 $clone = clone $this;
478 $clone->kiosk_mode = $kiosk_mode;
479 return $clone;
480 }

Referenced by ILIAS\Test\Settings\MainSettings\SettingsMainGUI\getTestBehaviourSettingsForStorage().

+ Here is the caller graph for this function:

◆ withNumberOfTries()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withNumberOfTries ( int  $number_of_tries)

Definition at line 383 of file SettingsTestBehaviour.php.

383 : self
384 {
385 $clone = clone $this;
386 $clone->number_of_tries = $number_of_tries;
387 return $clone;
388 }

◆ withPassWaiting()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withPassWaiting ( ?string  $pass_waiting)

Definition at line 407 of file SettingsTestBehaviour.php.

407 : self
408 {
409 $clone = clone $this;
410 $clone->pass_waiting = $this->cleanupPassWaiting($pass_waiting);
411 return $clone;
412 }

◆ withProcessingTime()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withProcessingTime ( ?string  $processing_time)

Definition at line 442 of file SettingsTestBehaviour.php.

442 : self
443 {
444 $clone = clone $this;
445 $clone->processing_time = $processing_time;
446 return $clone;
447 }

◆ withProcessingTimeEnabled()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withProcessingTimeEnabled ( bool  $processing_time_enabled)

Definition at line 430 of file SettingsTestBehaviour.php.

430 : self
431 {
432 $clone = clone $this;
433 $clone->processing_time_enabled = $processing_time_enabled;
434 return $clone;
435 }

◆ withResetProcessingTime()

ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::withResetProcessingTime ( bool  $reset_processing_time)

Definition at line 463 of file SettingsTestBehaviour.php.

463 : self
464 {
465 $clone = clone $this;
466 $clone->reset_processing_time = $reset_processing_time;
467 return $clone;
468 }

Field Documentation

◆ DEFAULT_PROCESSING_TIME_MINUTES

const ILIAS\Test\Settings\MainSettings\SettingsTestBehaviour::DEFAULT_PROCESSING_TIME_MINUTES = 90
private

Definition at line 32 of file SettingsTestBehaviour.php.


The documentation for this class was generated from the following file: