19 declare(strict_types=1);
51 array $environment = null
54 'solution_best_solution' =>
56 $lng->
txt(
'tst_results_print_best_solution'),
57 $lng->
txt(
'tst_results_print_best_solution_info')
59 'solution_feedback' => $f->checkbox(
60 $lng->
txt(
'tst_show_solution_feedback'),
61 $lng->
txt(
'tst_show_solution_feedback_desc')
63 'solution_suggested' => $f->checkbox(
64 $lng->
txt(
'tst_show_solution_suggested'),
65 $lng->
txt(
'tst_show_solution_suggested_desc')
67 'solution_printview' => $f->checkbox(
68 $lng->
txt(
'tst_show_solution_printview'),
69 $lng->
txt(
'tst_show_solution_printview_desc')
71 'solution_hide_page' => $f->checkbox(
72 $lng->
txt(
'tst_hide_pagecontents'),
73 $lng->
txt(
'tst_hide_pagecontents_desc')
76 'solution_signature' => $f->checkbox(
77 $lng->
txt(
'tst_show_solution_signature'),
78 $lng->
txt(
'tst_show_solution_signature_desc')
83 'examid_in_test_res' => $f->checkbox(
84 $lng->
txt(
'examid_in_test_res'),
85 $lng->
txt(
'examid_in_test_res_desc')
89 return $f->section($fields, $lng->
txt(
'tst_results_details_options'))
91 $refinery->custom()->transformation(
122 $clone = clone $this;
133 $clone = clone $this;
140 return ($this->results_presentation & $bit) > 0;
144 $clone = clone $this;
145 $v = $clone->results_presentation;
154 $clone->results_presentation = $v;
227 $clone = clone $this;
233 return ($this->exportsettings & $bit) > 0;
237 $clone = clone $this;
238 $v = $clone->exportsettings;
247 $clone->exportsettings = $v;
withShowSolutionPrintview(bool $flag)
const RESULTPRES_BIT_SOLUTION_SIGNATURE
int $results_presentation
withShowSolutionSuggested(bool $flag)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getShowSolutionFeedback()
getShowSolutionSignature()
modifyResultPresentation(int $bit, bool $flag)
withShowPassDetails(bool $flag)
withShowSolutionAnswersOnly(bool $flag)
const RESULTPRES_BIT_SOLUTION_FEEDBACK
const RESULTPRES_BIT_SOLUTION_ANSWERS_ONLY
getShowSolutionListComparison()
withShowExamIdInTestResults(bool $examid_in_test_res)
getShowSolutionPrintview()
const RESULTPRES_BIT_SOLUTION_SUGGESTED
const RESULTPRES_BIT_SOLUTION_LISTCOMPARE
getShowSolutionAnswersOnly()
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
__construct(int $test_id)
withShowSolutionFeedback(bool $flag)
compareExportSetting(int $bit)
getShowExamIdInTestResults()
const RESULTPRES_BIT_SOLUTION_DETAILS
const RESULTPRES_BIT_SOLUTION_PRINTVIEW
const RESULTPRES_BIT_SOLUTION_LISTOWNANSWERS
modifyExportSetting(int $bit, bool $flag)
withExportSettings(int $exportsettings)
compareResultPresentation(int $bit)
getShowSolutionSuggested()
withResultsPresentation(int $results_presentation)
withShowSolutionListComparison(bool $flag)
withShowSolutionSignature(bool $flag)
const RESULTPRES_BIT_PASS_DETAILS
Refinery Factory $refinery