19declare(strict_types=1);
48 $row[
'question_set_type'],
49 (
bool) $row[
'anonymity']
52 (
bool) $row[
'intro_enabled'],
53 $row[
'introduction_page_id'],
54 (
bool) $row[
'conditions_checkbox_enabled'],
57 (
bool) $row[
'starting_time_enabled'],
58 $row[
'starting_time'] !== 0
59 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'starting_time'])
61 (
bool) $row[
'ending_time_enabled'],
62 $row[
'ending_time'] !== 0
63 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'ending_time'])
65 (
bool) $row[
'password_enabled'],
67 $row[
'ip_range_from'],
69 (
bool) $row[
'fixed_participants'],
73 (
bool) $row[
'block_after_passed'],
75 (
bool) $row[
'enable_processing_time'],
76 $row[
'processing_time'],
77 (
bool) $row[
'reset_processing_time'],
79 (
bool) $row[
'examid_in_test_pass']
82 (
int) $row[
'title_output'],
83 (
bool) $row[
'autosave'],
84 $row[
'autosave_ival'],
85 (
bool) $row[
'shuffle_questions'],
86 (
bool) $row[
'answer_feedback_points'],
87 (
bool) $row[
'answer_feedback'],
88 (
bool) $row[
'specific_feedback'],
89 (
bool) $row[
'instant_verification'],
90 (
bool) $row[
'force_inst_fb'],
91 (
bool) $row[
'inst_fb_answer_fixation'],
92 (
bool) $row[
'follow_qst_answer_fixation']
95 (
bool) $row[
'use_previous_answers'],
96 (
bool) $row[
'suspend_test_allowed'],
97 (
bool) $row[
'sequence_settings'],
98 $row[
'usr_pass_overview_mode'],
99 (
bool) $row[
'show_marker'],
100 (
bool) $row[
'show_questionlist']
103 (
bool) $row[
'enable_examview'],
104 (
bool) $row[
'showfinalstatement'],
105 $row[
'concluding_remarks_page_id'],
106 RedirectionModes::tryFrom($row[
'redirection_mode']) ?? RedirectionModes::NONE,
107 $row[
'redirection_url']
110 (
bool) $row[
'skill_service'],
111 (
bool) $row[
'hide_info_tab']
147 (
new SettingsScoring())
148 ->withCountSystem((
int) $row[
'count_system'])
149 ->withScoreCutting((
int) $row[
'score_cutting'])
150 ->withPassScoring((
int) $row[
'pass_scoring']),
153 ->withReportingDate(!empty($row[
'reporting_date'])
154 ? \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'reporting_date'])
156 ->withShowGradingStatusEnabled((
bool) $row[
'show_grading_status'])
157 ->withShowGradingMarkEnabled((
bool) $row[
'show_grading_mark'])
158 ->withPassDeletionAllowed((
bool) $row[
'pass_deletion_allowed']),
161 ->withResultsPresentation((
int) $row[
'results_presentation'])
162 ->withShowExamIdInTestResults((
bool) $row[
'examid_in_test_res'])
163 ->withExportSettings((
int) $row[
'exportsettings']),
165 ->withHighscoreEnabled((
bool) $row[
'highscore_enabled'])
166 ->withHighscoreAnon((
bool) $row[
'highscore_anon'])
167 ->withHighscoreAchievedTS((
bool) $row[
'highscore_achieved_ts'])
168 ->withHighscoreScore((
bool) $row[
'highscore_score'])
169 ->withHighscorePercentage((
bool) $row[
'highscore_percentage'])
170 ->withHighscoreWTime((
bool) $row[
'highscore_wtime'])
171 ->withHighscoreOwnTable((
bool) $row[
'highscore_own_table'])
172 ->withHighscoreTopTable((
bool) $row[
'highscore_top_table'])
173 ->withHighscoreTopNum((
int) $row[
'highscore_top_num'])
180 $row[
'test_defaults_id'],
183 $row[
'description'] ??
'',
184 $row[
'author'] ??
'',
185 \DateTimeImmutable::createFromFormat(
'U', (
string) $row[
'tstamp']),
186 $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...