19 declare(strict_types=1);
31 array $additional_data
45 if (($type = TestAdministrationInteractionTypes::tryFrom($db_values->interaction_type)) ===
null) {
46 throw new \ilTestException(
47 sprintf(self::NONEXISTENT_TYPE_MSG, $db_values->id, $db_values->interaction_type)
54 $db_values->modification_ts,
55 json_decode($db_values->additional_data,
true) ?? []
57 )->withId($db_values->id);
65 array $additional_data
80 if (($type = TestQuestionAdministrationInteractionTypes::tryFrom($db_values->interaction_type)) ===
null) {
81 throw new \ilTestException(
82 sprintf(self::NONEXISTENT_TYPE_MSG, $db_values->id, $db_values->interaction_type)
90 $db_values->modification_ts,
91 json_decode($db_values->additional_data,
true) ?? []
92 ))->withId($db_values->id);
101 array $additional_data
117 if (($type = TestParticipantInteractionTypes::tryFrom($db_values->interaction_type)) ===
null) {
118 throw new \ilTestException(
119 sprintf(self::NONEXISTENT_TYPE_MSG, $db_values->id, $db_values->interaction_type)
126 $db_values->source_ip,
128 $db_values->modification_ts,
129 json_decode($db_values->additional_data,
true) ?? []
130 ))->withId($db_values->id);
139 array $additional_data
155 if (($type = TestScoringInteractionTypes::tryFrom($db_values->interaction_type)) ===
null) {
156 throw new \ilTestException(
157 sprintf(self::NONEXISTENT_TYPE_MSG, $db_values->id, $db_values->interaction_type)
163 $db_values->admin_id,
166 $db_values->modification_ts,
167 json_decode($db_values->additional_data,
true) ?? []
168 ))->withId($db_values->id);
177 string $error_message
192 if (($type = TestErrorTypes::tryFrom($db_values->interaction_type)) ===
null) {
193 throw new \ilTestException(
194 sprintf(self::NONEXISTENT_TYPE_MSG, $db_values->id, $db_values->interaction_type)
201 $db_values->admin_id,
204 $db_values->modification_ts,
205 $db_values->error_message
206 ))->withId($db_values->id);
const NONEXISTENT_TYPE_MSG
TestAdministrationInteractionTypes
buildTestAdministrationInteraction(int $ref_id, int $admin_id, TestAdministrationInteractionTypes $type, array $additional_data)
buildParticipantInteractionFromDBValues(\stdClass $db_values)
buildScoringInteraction(int $ref_id, int $qst_id, int $admin_id, int $pax_id, TestScoringInteractionTypes $type, array $additional_data)
TestScoringInteractionTypes
buildTestAdministrationInteractionFromDBValues(\stdClass $db_values)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
TestQuestionAdministrationInteractionTypes
buildErrorFromDBValues(\stdClass $db_values)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
TestParticipantInteractionTypes
buildError(int $ref_id, ?int $qst_id, ?int $admin_id, ?int $pax_id, TestErrorTypes $type, string $error_message)
buildScoringInteractionFromDBValues(\stdClass $db_values)
buildParticipantInteraction(int $ref_id, ?int $qst_id, int $pax_id, string $source_addr, TestParticipantInteractionTypes $type, array $additional_data)
buildQuestionAdministrationInteractionFromDBValues(\stdClass $db_values)
buildTestQuestionAdministrationInteraction(int $ref_id, int $qst_id, int $admin_id, TestQuestionAdministrationInteractionTypes $type, array $additional_data)