ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjTestMainSettings Class Reference
+ Collaboration diagram for ilObjTestMainSettings:

Public Member Functions

 __construct (int $test_id, ilObjTestSettingsGeneral $settings_general, ilObjTestSettingsIntroduction $settings_introduction, ilObjTestSettingsAccess $settings_access, ilObjTestSettingsTestBehaviour $settings_test_behaviour, ilObjTestSettingsQuestionBehaviour $settings_question_behaviour, ilObjTestSettingsParticipantFunctionality $settings_participant_functionality, ilObjTestSettingsFinishing $settings_finishing, ilObjTestSettingsAdditional $settings_additional)
 
 getTestId ()
 
 withTestId (int $test_id)
 
 getGeneralSettings ()
 
 withGeneralSettings (ilObjTestSettingsGeneral $settings)
 
 getIntroductionSettings ()
 
 withIntroductionSettings (ilObjTestSettingsIntroduction $settings)
 
 getAccessSettings ()
 
 withAccessSettings (ilObjTestSettingsAccess $settings)
 
 getTestBehaviourSettings ()
 
 withTestBehaviourSettings (ilObjTestSettingsTestBehaviour $settings)
 
 getQuestionBehaviourSettings ()
 
 withQuestionBehaviourSettings (ilObjTestSettingsQuestionBehaviour $settings)
 
 getParticipantFunctionalitySettings ()
 
 withParticipantFunctionalitySettings (ilObjTestSettingsParticipantFunctionality $settings)
 
 getFinishingSettings ()
 
 withFinishingSettings (ilObjTestSettingsFinishing $settings)
 
 getAdditionalSettings ()
 
 withAdditionalSettings (ilObjTestSettingsAdditional $settings)
 

Protected Member Functions

 throwOnDifferentTestId (TestSettings $setting)
 

Protected Attributes

int $test_id
 
ilObjTestSettingsIntroduction $settings_introduction
 
ilObjTestSettingsFinishing $settings_finishing
 
ilObjTestSettingsAccess $settings_access
 
ilObjTestSettingsTestBehaviour $settings_test_behaviour
 
ilObjTestSettingsQuestionBehaviour $settings_question_behaviour
 
ilObjTestSettingsParticipantFunctionality $settings_participant_functionality
 
ilObjTestSettingsGeneral $settings_general
 
ilObjTestSettingsAdditional $settings_additional
 

Detailed Description

Definition at line 21 of file ilObjTestMainSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjTestMainSettings::__construct ( int  $test_id,
ilObjTestSettingsGeneral  $settings_general,
ilObjTestSettingsIntroduction  $settings_introduction,
ilObjTestSettingsAccess  $settings_access,
ilObjTestSettingsTestBehaviour  $settings_test_behaviour,
ilObjTestSettingsQuestionBehaviour  $settings_question_behaviour,
ilObjTestSettingsParticipantFunctionality  $settings_participant_functionality,
ilObjTestSettingsFinishing  $settings_finishing,
ilObjTestSettingsAdditional  $settings_additional 
)

Definition at line 33 of file ilObjTestMainSettings.php.

References $settings_access, $settings_additional, $settings_finishing, $settings_general, $settings_introduction, $settings_participant_functionality, $settings_question_behaviour, $settings_test_behaviour, $test_id, and throwOnDifferentTestId().

43  {
44  $this->test_id = $test_id;
45 
46  foreach ([
47  $settings_general,
48  $settings_introduction,
49  $settings_access,
50  $settings_test_behaviour,
51  $settings_question_behaviour,
52  $settings_participant_functionality,
53  $settings_finishing,
54  $settings_additional
55  ] as $setting) {
56  $this->throwOnDifferentTestId($setting);
57  }
58 
59  $this->settings_general = $settings_general;
60  $this->settings_introduction = $settings_introduction;
61  $this->settings_access = $settings_access;
62  $this->settings_test_behaviour = $settings_test_behaviour;
63  $this->settings_question_behaviour = $settings_question_behaviour;
64  $this->settings_participant_functionality = $settings_participant_functionality;
65  $this->settings_finishing = $settings_finishing;
66  $this->settings_additional = $settings_additional;
67  }
ilObjTestSettingsParticipantFunctionality $settings_participant_functionality
ilObjTestSettingsGeneral $settings_general
ilObjTestSettingsQuestionBehaviour $settings_question_behaviour
ilObjTestSettingsTestBehaviour $settings_test_behaviour
ilObjTestSettingsFinishing $settings_finishing
ilObjTestSettingsAdditional $settings_additional
ilObjTestSettingsIntroduction $settings_introduction
throwOnDifferentTestId(TestSettings $setting)
ilObjTestSettingsAccess $settings_access
+ Here is the call graph for this function:

Member Function Documentation

◆ getAccessSettings()

ilObjTestMainSettings::getAccessSettings ( )

◆ getAdditionalSettings()

ilObjTestMainSettings::getAdditionalSettings ( )

◆ getFinishingSettings()

ilObjTestMainSettings::getFinishingSettings ( )

◆ getGeneralSettings()

ilObjTestMainSettings::getGeneralSettings ( )

◆ getIntroductionSettings()

ilObjTestMainSettings::getIntroductionSettings ( )

◆ getParticipantFunctionalitySettings()

ilObjTestMainSettings::getParticipantFunctionalitySettings ( )

◆ getQuestionBehaviourSettings()

ilObjTestMainSettings::getQuestionBehaviourSettings ( )

◆ getTestBehaviourSettings()

ilObjTestMainSettings::getTestBehaviourSettings ( )

◆ getTestId()

ilObjTestMainSettings::getTestId ( )

Definition at line 76 of file ilObjTestMainSettings.php.

References $test_id.

Referenced by ilObjTestMainSettingsDatabaseRepository\store(), and throwOnDifferentTestId().

76  : int
77  {
78  return $this->test_id;
79  }
+ Here is the caller graph for this function:

◆ throwOnDifferentTestId()

ilObjTestMainSettings::throwOnDifferentTestId ( TestSettings  $setting)
protected

Definition at line 69 of file ilObjTestMainSettings.php.

References TestSettings\getTestId(), and getTestId().

Referenced by __construct(), withAccessSettings(), withAdditionalSettings(), withFinishingSettings(), withGeneralSettings(), withIntroductionSettings(), withParticipantFunctionalitySettings(), withQuestionBehaviourSettings(), and withTestBehaviourSettings().

70  {
71  if ($setting->getTestId() !== $this->getTestId()) {
72  throw new \LogicException('TestId mismatch in ' . get_class($setting));
73  }
74  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withAccessSettings()

ilObjTestMainSettings::withAccessSettings ( ilObjTestSettingsAccess  $settings)

Definition at line 123 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

123  : self
124  {
125  $this->throwOnDifferentTestId($settings);
126  $clone = clone $this;
127  $clone->settings_access = $settings;
128  return $clone;
129  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withAdditionalSettings()

ilObjTestMainSettings::withAdditionalSettings ( ilObjTestSettingsAdditional  $settings)

Definition at line 183 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

183  : self
184  {
185  $this->throwOnDifferentTestId($settings);
186  $clone = clone $this;
187  $clone->settings_additional = $settings;
188  return $clone;
189  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withFinishingSettings()

ilObjTestMainSettings::withFinishingSettings ( ilObjTestSettingsFinishing  $settings)

Definition at line 171 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

171  : self
172  {
173  $this->throwOnDifferentTestId($settings);
174  $clone = clone $this;
175  $clone->settings_finishing = $settings;
176  return $clone;
177  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withGeneralSettings()

ilObjTestMainSettings::withGeneralSettings ( ilObjTestSettingsGeneral  $settings)

Definition at line 99 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

Referenced by ilObjTest\applyDefaults(), and ilObjTest\fromXML().

99  : self
100  {
101  $this->throwOnDifferentTestId($settings);
102  $clone = clone $this;
103  $clone->settings_general = $settings;
104  return $clone;
105  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withIntroductionSettings()

ilObjTestMainSettings::withIntroductionSettings ( ilObjTestSettingsIntroduction  $settings)

Definition at line 111 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

111  : self
112  {
113  $this->throwOnDifferentTestId($settings);
114  $clone = clone $this;
115  $clone->settings_introduction = $settings;
116  return $clone;
117  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withParticipantFunctionalitySettings()

ilObjTestMainSettings::withParticipantFunctionalitySettings ( ilObjTestSettingsParticipantFunctionality  $settings)

Definition at line 159 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

159  : self
160  {
161  $this->throwOnDifferentTestId($settings);
162  $clone = clone $this;
163  $clone->settings_participant_functionality = $settings;
164  return $clone;
165  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withQuestionBehaviourSettings()

ilObjTestMainSettings::withQuestionBehaviourSettings ( ilObjTestSettingsQuestionBehaviour  $settings)

Definition at line 147 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

147  : self
148  {
149  $this->throwOnDifferentTestId($settings);
150  $clone = clone $this;
151  $clone->settings_question_behaviour = $settings;
152  return $clone;
153  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withTestBehaviourSettings()

ilObjTestMainSettings::withTestBehaviourSettings ( ilObjTestSettingsTestBehaviour  $settings)

Definition at line 135 of file ilObjTestMainSettings.php.

References ILIAS\LTI\ToolProvider\$settings, and throwOnDifferentTestId().

135  : self
136  {
137  $this->throwOnDifferentTestId($settings);
138  $clone = clone $this;
139  $clone->settings_test_behaviour = $settings;
140  return $clone;
141  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
throwOnDifferentTestId(TestSettings $setting)
+ Here is the call graph for this function:

◆ withTestId()

ilObjTestMainSettings::withTestId ( int  $test_id)

Definition at line 80 of file ilObjTestMainSettings.php.

References $test_id.

80  : self
81  {
82  $clone = clone $this;
83  $clone->test_id = $test_id;
84  $clone->settings_general = $clone->settings_general->withTestId($test_id);
85  $clone->settings_introduction = $clone->settings_introduction->withTestId($test_id);
86  $clone->settings_access = $clone->settings_access->withTestId($test_id);
87  $clone->settings_test_behaviour = $clone->settings_test_behaviour->withTestId($test_id);
88  $clone->settings_question_behaviour = $clone->settings_question_behaviour->withTestId($test_id);
89  $clone->settings_participant_functionality = $clone->settings_participant_functionality->withTestId($test_id);
90  $clone->settings_finishing = $clone->settings_finishing->withTestId($test_id);
91  $clone->settings_additional = $clone->settings_additional->withTestId($test_id);
92  return $clone;
93  }

Field Documentation

◆ $settings_access

ilObjTestSettingsAccess ilObjTestMainSettings::$settings_access
protected

Definition at line 26 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getAccessSettings().

◆ $settings_additional

ilObjTestSettingsAdditional ilObjTestMainSettings::$settings_additional
protected

Definition at line 31 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getAdditionalSettings().

◆ $settings_finishing

ilObjTestSettingsFinishing ilObjTestMainSettings::$settings_finishing
protected

Definition at line 25 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getFinishingSettings().

◆ $settings_general

ilObjTestSettingsGeneral ilObjTestMainSettings::$settings_general
protected

Definition at line 30 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getGeneralSettings().

◆ $settings_introduction

ilObjTestSettingsIntroduction ilObjTestMainSettings::$settings_introduction
protected

Definition at line 24 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getIntroductionSettings().

◆ $settings_participant_functionality

ilObjTestSettingsParticipantFunctionality ilObjTestMainSettings::$settings_participant_functionality
protected

Definition at line 29 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getParticipantFunctionalitySettings().

◆ $settings_question_behaviour

ilObjTestSettingsQuestionBehaviour ilObjTestMainSettings::$settings_question_behaviour
protected

Definition at line 28 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getQuestionBehaviourSettings().

◆ $settings_test_behaviour

ilObjTestSettingsTestBehaviour ilObjTestMainSettings::$settings_test_behaviour
protected

Definition at line 27 of file ilObjTestMainSettings.php.

Referenced by __construct(), and getTestBehaviourSettings().

◆ $test_id

int ilObjTestMainSettings::$test_id
protected

Definition at line 23 of file ilObjTestMainSettings.php.

Referenced by __construct(), getTestId(), and withTestId().


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