19 declare(strict_types=1);
34 protected bool $introduction_enabled =
false,
35 protected ?
string $introduction_text = null,
36 protected ?
int $introduction_page_id = null,
37 protected bool $conditions_checkbox_enabled =
false,
46 array $environment = null
48 $inputs[
'introduction_enabled'] = $f->checkbox(
49 $lng->
txt(
'tst_introduction'),
50 $lng->
txt(
'tst_introduction_desc')
53 $inputs[
'conditions_checkbox_enabled'] = $f->checkbox(
54 $lng->
txt(
'tst_conditions_checkbox_enabled'),
55 $lng->
txt(
'tst_conditions_checkbox_enabled_desc')
58 return $f->section(
$inputs, $lng->
txt(
'tst_settings_header_intro'));
83 return $this->introduction_enabled;
89 $clone->introduction_enabled = $introduction_enabled;
95 return $this->introduction_text ??
'';
100 $clone->introduction_text = $introduction_text;
106 return $this->introduction_page_id;
110 $clone = clone $this;
111 $clone->introduction_page_id = $introduction_page_id;
117 return $this->conditions_checkbox_enabled;
121 $clone = clone $this;
122 $clone->conditions_checkbox_enabled = $conditions_checkbox_enabled;
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
toLog(AdditionalInformationGenerator $additional_info)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
__construct(int $test_id, protected bool $introduction_enabled=false, protected ?string $introduction_text=null, protected ?int $introduction_page_id=null, protected bool $conditions_checkbox_enabled=false,)
withIntroductionEnabled(bool $introduction_enabled)
withIntroductionPageId(?int $introduction_page_id)
getExamConditionsCheckboxEnabled()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withIntroductionText(?string $introduction_text)
__construct(Container $dic, ilPlugin $plugin)
withExamConditionsCheckboxEnabled(bool $conditions_checkbox_enabled)