19declare(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'));
64 'intro_enabled' => [
'integer', (
int) $this->getIntroductionEnabled()],
65 'introduction' => [
'text', $this->getIntroductionText()],
66 'introduction_page_id' => [
'integer', $this->getIntroductionPageId()],
67 'conditions_checkbox_enabled' => [
'integer', (
int) $this->getExamConditionsCheckboxEnabled()],
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;
withIntroductionEnabled(bool $introduction_enabled)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
withIntroductionPageId(?int $introduction_page_id)
withExamConditionsCheckboxEnabled(bool $conditions_checkbox_enabled)
__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,)
withIntroductionText(?string $introduction_text)
toLog(AdditionalInformationGenerator $additional_info)
getExamConditionsCheckboxEnabled()
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...