ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Test\Settings\MainSettings\SettingsIntroduction Class Reference
+ Inheritance diagram for ILIAS\Test\Settings\MainSettings\SettingsIntroduction:
+ Collaboration diagram for ILIAS\Test\Settings\MainSettings\SettingsIntroduction:

Public Member Functions

 __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,)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 
 getIntroductionEnabled ()
 
 withIntroductionEnabled (bool $introduction_enabled)
 
 getIntroductionText ()
 
 withIntroductionText (?string $introduction_text)
 
 getIntroductionPageId ()
 
 withIntroductionPageId (?int $introduction_page_id)
 
 getExamConditionsCheckboxEnabled ()
 
 withExamConditionsCheckboxEnabled (bool $conditions_checkbox_enabled)
 
- Public Member Functions inherited from ILIAS\Test\Settings\TestSettings
 __construct (int $test_id)
 
 getTestId ()
 
 withTestId (int $test_id)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Test\Settings\TestSettings
int $test_id
 

Detailed Description

Definition at line 30 of file SettingsIntroduction.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::__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 
)

Definition at line 32 of file SettingsIntroduction.php.

38 {
40 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\Test\Settings\TestSettings\$test_id, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getExamConditionsCheckboxEnabled()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::getExamConditionsCheckboxEnabled ( )

Definition at line 115 of file SettingsIntroduction.php.

115 : bool
116 {
117 return $this->conditions_checkbox_enabled;
118 }

◆ getIntroductionEnabled()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::getIntroductionEnabled ( )

Definition at line 81 of file SettingsIntroduction.php.

81 : bool
82 {
83 return $this->introduction_enabled;
84 }

◆ getIntroductionPageId()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::getIntroductionPageId ( )

Definition at line 104 of file SettingsIntroduction.php.

104 : ?int
105 {
106 return $this->introduction_page_id;
107 }

◆ getIntroductionText()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::getIntroductionText ( )

Definition at line 93 of file SettingsIntroduction.php.

93 : string
94 {
95 return $this->introduction_text ?? '';
96 }

◆ toForm()

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

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 42 of file SettingsIntroduction.php.

47 : FormInput {
48 $inputs['introduction_enabled'] = $f->checkbox(
49 $lng->txt('tst_introduction'),
50 $lng->txt('tst_introduction_desc')
51 )->withValue($this->getIntroductionEnabled());
52
53 $inputs['conditions_checkbox_enabled'] = $f->checkbox(
54 $lng->txt('tst_conditions_checkbox_enabled'),
55 $lng->txt('tst_conditions_checkbox_enabled_desc')
56 )->withValue($this->getExamConditionsCheckboxEnabled());
57
58 return $f->section($inputs, $lng->txt('tst_settings_header_intro'));
59 }
global $lng
Definition: privfeed.php:31

◆ toLog()

◆ toStorage()

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

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 61 of file SettingsIntroduction.php.

61 : array
62 {
63 return [
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()],
68 ];
69 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ withExamConditionsCheckboxEnabled()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::withExamConditionsCheckboxEnabled ( bool  $conditions_checkbox_enabled)

Definition at line 119 of file SettingsIntroduction.php.

119 : self
120 {
121 $clone = clone $this;
122 $clone->conditions_checkbox_enabled = $conditions_checkbox_enabled;
123 return $clone;
124 }

◆ withIntroductionEnabled()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::withIntroductionEnabled ( bool  $introduction_enabled)

Definition at line 86 of file SettingsIntroduction.php.

86 : self
87 {
88 $clone = clone $this;
89 $clone->introduction_enabled = $introduction_enabled;
90 return $clone;
91 }

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

+ Here is the caller graph for this function:

◆ withIntroductionPageId()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::withIntroductionPageId ( ?int  $introduction_page_id)

Definition at line 108 of file SettingsIntroduction.php.

108 : self
109 {
110 $clone = clone $this;
111 $clone->introduction_page_id = $introduction_page_id;
112 return $clone;
113 }

Referenced by ilObjTest\addIntroductionToSettingsFromImport().

+ Here is the caller graph for this function:

◆ withIntroductionText()

ILIAS\Test\Settings\MainSettings\SettingsIntroduction::withIntroductionText ( ?string  $introduction_text)

Definition at line 97 of file SettingsIntroduction.php.

97 : self
98 {
99 $clone = clone $this;
100 $clone->introduction_text = $introduction_text;
101 return $clone;
102 }

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