ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References ILIAS\GlobalScreen\Provider\__construct().

38  {
40  }
__construct(Container $dic, ilPlugin $plugin)
+ 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.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toForm(), ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toLog(), and ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toStorage().

115  : bool
116  {
117  return $this->conditions_checkbox_enabled;
118  }
+ Here is the caller graph for this function:

◆ getIntroductionEnabled()

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

Definition at line 81 of file SettingsIntroduction.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toForm(), ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toLog(), and ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toStorage().

81  : bool
82  {
83  return $this->introduction_enabled;
84  }
+ Here is the caller graph for this function:

◆ getIntroductionPageId()

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

Definition at line 104 of file SettingsIntroduction.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toStorage().

104  : ?int
105  {
106  return $this->introduction_page_id;
107  }
+ Here is the caller graph for this function:

◆ getIntroductionText()

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

Definition at line 93 of file SettingsIntroduction.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsIntroduction\toStorage().

93  : string
94  {
95  return $this->introduction_text ?? '';
96  }
+ Here is the caller graph for this function:

◆ toForm()

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

Definition at line 42 of file SettingsIntroduction.php.

References ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Test\Settings\MainSettings\SettingsIntroduction\getExamConditionsCheckboxEnabled(), ILIAS\Test\Settings\MainSettings\SettingsIntroduction\getIntroductionEnabled(), ilLanguage\txt(), and ILIAS\UI\Implementation\Component\Input\withValue().

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')
57 
58  return $f->section($inputs, $lng->txt('tst_settings_header_intro'));
59  }
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
+ Here is the call graph for this function:

◆ toLog()

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

Definition at line 71 of file SettingsIntroduction.php.

References ILIAS\Test\Logging\AdditionalInformationGenerator\getEnabledDisabledTagForBool(), ILIAS\Test\Settings\MainSettings\SettingsIntroduction\getExamConditionsCheckboxEnabled(), ILIAS\Test\Settings\MainSettings\SettingsIntroduction\getIntroductionEnabled(), ILIAS\Test\Logging\AdditionalInformationGenerator\KEY_TEST_CONDITIONS_ENABLED, and ILIAS\Test\Logging\AdditionalInformationGenerator\KEY_TEST_INTRODUCTION_ENABLED.

+ Here is the call graph for this function:

◆ toStorage()

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

◆ 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.

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

86  : self
87  {
88  $clone = clone $this;
89  $clone->introduction_enabled = $introduction_enabled;
90  return $clone;
91  }
+ 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.

Referenced by ilObjTest\addIntroductionToSettingsFromImport().

108  : self
109  {
110  $clone = clone $this;
111  $clone->introduction_page_id = $introduction_page_id;
112  return $clone;
113  }
+ 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: