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

Public Member Functions

 __construct (int $test_id, protected bool $skills_service_enabled=false, protected bool $hide_info_tab=false,)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 
 getSkillsServiceEnabled ()
 
 withSkillsServiceEnabled (bool $skills_service_enabled)
 
 getHideInfoTab ()
 
 withHideInfoTab (bool $hide_info_tab)
 
- 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)
 

Private Member Functions

 getInputSkillsServiceActivation (\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
 

Additional Inherited Members

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

Detailed Description

Definition at line 30 of file SettingsAdditional.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::__construct ( int  $test_id,
protected bool  $skills_service_enabled = false,
protected bool  $hide_info_tab = false 
)

Definition at line 32 of file SettingsAdditional.php.

36 {
38 }
__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

◆ getHideInfoTab()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getHideInfoTab ( )

Definition at line 114 of file SettingsAdditional.php.

114 : bool
115 {
116 return $this->hide_info_tab;
117 }

◆ getInputSkillsServiceActivation()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getInputSkillsServiceActivation ( \ilLanguage  $lng,
FieldFactory  $f,
bool  $participant_data_exists 
)
private

Definition at line 67 of file SettingsAdditional.php.

71 : Checkbox {
72 $skills_service_activation = $f->checkbox(
73 $lng->txt('tst_activate_skill_service'),
74 $lng->txt('tst_activate_skill_service_desc')
75 )->withValue($this->getSkillsServiceEnabled());
76
77 if ($participant_data_exists) {
78 return $skills_service_activation->withDisabled(true);
79 }
80
81 return $skills_service_activation;
82 }
global $lng
Definition: privfeed.php:31

Referenced by ILIAS\Test\Settings\MainSettings\SettingsAdditional\toForm().

+ Here is the caller graph for this function:

◆ getSkillsServiceEnabled()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getSkillsServiceEnabled ( )

Definition at line 102 of file SettingsAdditional.php.

102 : bool
103 {
104 return $this->skills_service_enabled;
105 }

◆ toForm()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::toForm ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
?array  $environment = null 
)
Returns
array<ILIAS\UI\Component\Input\Container\Form\FormInput>

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 44 of file SettingsAdditional.php.

49 : array {
50 $inputs = [];
51 if ((new \ilSkillManagementSettings())->isActivated()) {
52 $inputs['skills_service_activation'] = $this->getInputSkillsServiceActivation(
53 $lng,
54 $f,
55 $environment['participant_data_exists']
56 );
57 }
58
59 $inputs['hide_info_tab'] = $f->checkbox(
60 $lng->txt('tst_hide_info_tab'),
61 $lng->txt('tst_hide_info_tab_desc')
62 )->withValue($this->getHideInfoTab());
63
64 return $inputs;
65 }
getInputSkillsServiceActivation(\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)

References Vendor\Package\$f, ILIAS\UI\Implementation\Component\Input\$inputs, and ILIAS\Test\Settings\MainSettings\SettingsAdditional\getInputSkillsServiceActivation().

+ Here is the call graph for this function:

◆ toLog()

◆ toStorage()

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

Reimplemented from ILIAS\Test\Settings\TestSettings.

Definition at line 84 of file SettingsAdditional.php.

84 : array
85 {
86 return [
87 'skill_service' => ['integer', (int) $this->getSkillsServiceEnabled()],
88 'hide_info_tab' => ['integer', (int) $this->getHideInfoTab()],
89 ];
90 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ withHideInfoTab()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::withHideInfoTab ( bool  $hide_info_tab)

Definition at line 118 of file SettingsAdditional.php.

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

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

+ Here is the caller graph for this function:

◆ withSkillsServiceEnabled()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::withSkillsServiceEnabled ( bool  $skills_service_enabled)

Definition at line 107 of file SettingsAdditional.php.

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

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