19declare(strict_types=1);
47 $row[
'question_set_type'],
48 (
bool) $row[
'anonymity']
51 (
bool) $row[
'intro_enabled'],
52 $row[
'introduction_page_id'],
53 (
bool) $row[
'conditions_checkbox_enabled'],
56 (
bool) $row[
'starting_time_enabled'],
57 $row[
'starting_time'] !== 0
58 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'starting_time'])
60 (
bool) $row[
'ending_time_enabled'],
61 $row[
'ending_time'] !== 0
62 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'ending_time'])
64 (
bool) $row[
'password_enabled'],
66 $row[
'ip_range_from'],
68 (
bool) $row[
'fixed_participants'],
72 (
bool) $row[
'block_after_passed'],
74 (
bool) $row[
'enable_processing_time'],
75 $row[
'processing_time'],
76 (
bool) $row[
'reset_processing_time'],
78 (
bool) $row[
'examid_in_test_pass']
81 (
int) $row[
'title_output'],
82 (
bool) $row[
'autosave'],
83 $row[
'autosave_ival'],
84 (
bool) $row[
'shuffle_questions'],
85 (
bool) $row[
'answer_feedback_points'],
86 (
bool) $row[
'answer_feedback'],
87 (
bool) $row[
'specific_feedback'],
88 (
bool) $row[
'instant_verification'],
89 (
bool) $row[
'force_inst_fb'],
90 (
bool) $row[
'inst_fb_answer_fixation'],
91 (
bool) $row[
'follow_qst_answer_fixation']
94 (
bool) $row[
'use_previous_answers'],
95 (
bool) $row[
'suspend_test_allowed'],
96 (
bool) $row[
'sequence_settings'],
97 $row[
'usr_pass_overview_mode'],
98 (
bool) $row[
'show_marker'],
99 (
bool) $row[
'show_questionlist']
102 (
bool) $row[
'enable_examview'],
103 (
bool) $row[
'showfinalstatement'],
104 $row[
'concluding_remarks_page_id'],
105 RedirectionModes::tryFrom($row[
'redirection_mode']) ?? RedirectionModes::NONE,
106 $row[
'redirection_url']
109 (
bool) $row[
'skill_service'],
110 (
bool) $row[
'hide_info_tab']
146 (
new SettingsScoring())
147 ->withCountSystem((
int) $row[
'count_system'])
148 ->withScoreCutting((
int) $row[
'score_cutting'])
149 ->withPassScoring((
int) $row[
'pass_scoring']),
152 ->withReportingDate(!empty($row[
'reporting_date'])
153 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'reporting_date'])
155 ->withShowGradingStatusEnabled((
bool) $row[
'show_grading_status'])
156 ->withShowGradingMarkEnabled((
bool) $row[
'show_grading_mark'])
157 ->withPassDeletionAllowed((
bool) $row[
'pass_deletion_allowed']),
160 ->withResultsPresentation((
int) $row[
'results_presentation'])
161 ->withShowExamIdInTestResults((
bool) $row[
'examid_in_test_res'])
162 ->withExportSettings((
int) $row[
'exportsettings']),
169 $row[
'test_defaults_id'],
172 $row[
'description'] ??
'',
173 $row[
'author'] ??
'',
174 \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'tstamp']),
175 $row[
'settings_id'] ?? -1,
createTemplateFromDBRow(array $row)
createMainSettingsFromDBRow(array $row)
createScoreSettingsFromDBRow(array $row)
createDefaultMainSettings()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...