19declare(strict_types=1);
56 ?array $environment =
null
59 'solution_best_solution' =>
61 $lng->txt(
'tst_results_print_best_solution'),
62 $lng->txt(
'tst_results_print_best_solution_info')
64 'solution_feedback' =>
$f->checkbox(
65 $lng->txt(
'tst_show_solution_feedback'),
66 $lng->txt(
'tst_show_solution_feedback_desc')
68 'solution_suggested' =>
$f->checkbox(
69 $lng->txt(
'tst_show_solution_suggested'),
70 $lng->txt(
'tst_show_solution_suggested_desc')
72 'solution_printview' =>
$f->checkbox(
73 $lng->txt(
'tst_show_solution_printview'),
74 $lng->txt(
'tst_show_solution_printview_desc')
76 'solution_hide_page' =>
$f->checkbox(
77 $lng->txt(
'tst_hide_pagecontents'),
78 $lng->txt(
'tst_hide_pagecontents_desc')
81 'solution_signature' =>
$f->checkbox(
82 $lng->txt(
'tst_show_solution_signature'),
83 $lng->txt(
'tst_show_solution_signature_desc')
88 'examid_in_test_res' =>
$f->checkbox(
89 $lng->txt(
'examid_in_test_res'),
90 $lng->txt(
'examid_in_test_res_desc')
94 return $f->section($fields,
$lng->txt(
'tst_results_details_options'))
95 ->withAdditionalTransformation(
114 'results_presentation' => [
'integer', $this->getResultsPresentation()],
115 'examid_in_test_res' => [
'integer', (
int) $this->getShowExamIdInTestResults()],
116 'exportsettings' => [
'integer', $this->getExportSettings()]
142 return $this->results_presentation;
146 $clone = clone $this;
147 $clone->results_presentation = $results_presentation;
153 return $this->examid_in_test_res;
157 $clone = clone $this;
158 $clone->examid_in_test_res = $examid_in_test_res;
164 return ($this->results_presentation & $bit) > 0;
168 $clone = clone $this;
169 $v = $clone->results_presentation;
174 if ($this->compareResultPresentation($bit)) {
178 $clone->results_presentation = $v;
184 return $this->compareResultPresentation(self::RESULTPRES_BIT_PASS_DETAILS);
188 return $this->modifyResultPresentation(self::RESULTPRES_BIT_PASS_DETAILS, $flag);
193 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_PRINTVIEW);
197 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_PRINTVIEW, $flag);
202 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_FEEDBACK);
206 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_FEEDBACK, $flag);
211 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_ANSWERS_ONLY);
215 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_ANSWERS_ONLY, $flag);
220 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_SIGNATURE);
224 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_SIGNATURE, $flag);
229 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_SUGGESTED);
233 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_SUGGESTED, $flag);
238 return $this->compareResultPresentation(self::RESULTPRES_BIT_SOLUTION_LISTCOMPARE);
242 return $this->modifyResultPresentation(self::RESULTPRES_BIT_SOLUTION_LISTCOMPARE, $flag);
247 return $this->exportsettings;
251 $clone = clone $this;
252 $clone->exportsettings = $exportsettings;
257 return ($this->exportsettings & $bit) > 0;
261 $clone = clone $this;
262 $v = $clone->exportsettings;
267 if ($this->compareExportSetting($bit)) {
271 $clone->exportsettings = $v;
compareResultPresentation(int $bit)
modifyResultPresentation(int $bit, bool $flag)
withExportSettings(int $exportsettings)
toLog(AdditionalInformationGenerator $additional_info)
withShowSolutionPrintview(bool $flag)
getShowSolutionPrintview()
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
const RESULTPRES_BIT_SOLUTION_FEEDBACK
withShowPassDetails(bool $flag)
const RESULTPRES_BIT_PASS_DETAILS
withShowSolutionSignature(bool $flag)
const RESULTPRES_BIT_SOLUTION_LISTCOMPARE
const RESULTPRES_BIT_SOLUTION_LISTOWNANSWERS
compareExportSetting(int $bit)
withShowSolutionAnswersOnly(bool $flag)
getShowSolutionListComparison()
getShowSolutionSignature()
__construct(int $test_id)
getShowSolutionSuggested()
withShowSolutionListComparison(bool $flag)
modifyExportSetting(int $bit, bool $flag)
const RESULTPRES_BIT_SOLUTION_SUGGESTED
getShowSolutionFeedback()
int $results_presentation
getShowExamIdInTestResults()
withResultsPresentation(int $results_presentation)
getShowSolutionAnswersOnly()
const RESULTPRES_BIT_SOLUTION_SIGNATURE
withShowSolutionFeedback(bool $flag)
withShowSolutionSuggested(bool $flag)
withShowExamIdInTestResults(bool $examid_in_test_res)
const RESULTPRES_BIT_SOLUTION_PRINTVIEW
const RESULTPRES_BIT_SOLUTION_ANSWERS_ONLY
const RESULTPRES_BIT_SOLUTION_DETAILS
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc