19 declare(strict_types=1);
29 protected bool $introduction_enabled =
false,
30 protected ?
string $introduction_text = null,
31 protected ?
int $introduction_page_id = null,
32 protected bool $conditions_checkbox_enabled =
false,
41 array $environment = null
43 $inputs[
'introduction_enabled'] = $f->checkbox(
44 $lng->
txt(
'tst_introduction'),
45 $lng->
txt(
'tst_introduction_desc')
48 $inputs[
'conditions_checkbox_enabled'] = $f->checkbox(
49 $lng->
txt(
'tst_conditions_checkbox_enabled'),
50 $lng->
txt(
'tst_conditions_checkbox_enabled_desc')
53 return $f->section(
$inputs, $lng->
txt(
'tst_settings_header_intro'));
68 return $this->introduction_enabled;
73 $clone->introduction_enabled = $introduction_enabled;
79 return $this->introduction_text ??
'';
84 $clone->introduction_text = $introduction_text;
90 return $this->introduction_page_id;
95 $clone->introduction_page_id = $introduction_page_id;
101 return $this->conditions_checkbox_enabled;
105 $clone = clone $this;
106 $clone->conditions_checkbox_enabled = $conditions_checkbox_enabled;
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
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...
withExamConditionsCheckboxEnabled(bool $conditions_checkbox_enabled)
withIntroductionText(?string $introduction_text)
withIntroductionEnabled(bool $introduction_enabled)
getExamConditionsCheckboxEnabled()
withIntroductionPageId(?int $introduction_page_id)
__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,)
Refinery Factory $refinery