19 declare(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'))
96 $refinery->custom()->transformation(
146 $clone = clone $this;
157 $clone = clone $this;
164 return ($this->results_presentation & $bit) > 0;
168 $clone = clone $this;
169 $v = $clone->results_presentation;
178 $clone->results_presentation = $v;
251 $clone = clone $this;
257 return ($this->exportsettings & $bit) > 0;
261 $clone = clone $this;
262 $v = $clone->exportsettings;
271 $clone->exportsettings = $v;
const RESULTPRES_BIT_SOLUTION_DETAILS
__construct(int $test_id)
getShowSolutionPrintview()
modifyResultPresentation(int $bit, bool $flag)
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...
withShowSolutionPrintview(bool $flag)
withShowSolutionSignature(bool $flag)
compareExportSetting(int $bit)
getShowSolutionListComparison()
const RESULTPRES_BIT_SOLUTION_PRINTVIEW
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
const RESULTPRES_BIT_SOLUTION_SUGGESTED
withShowPassDetails(bool $flag)
getShowSolutionSignature()
toLog(AdditionalInformationGenerator $additional_info)
getShowSolutionAnswersOnly()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withShowSolutionAnswersOnly(bool $flag)
const RESULTPRES_BIT_SOLUTION_ANSWERS_ONLY
const RESULTPRES_BIT_SOLUTION_FEEDBACK
getShowExamIdInTestResults()
withShowExamIdInTestResults(bool $examid_in_test_res)
const RESULTPRES_BIT_SOLUTION_LISTOWNANSWERS
withShowSolutionListComparison(bool $flag)
modifyExportSetting(int $bit, bool $flag)
getShowSolutionFeedback()
const RESULTPRES_BIT_SOLUTION_SIGNATURE
int $results_presentation
getShowSolutionSuggested()
__construct(Container $dic, ilPlugin $plugin)
const RESULTPRES_BIT_PASS_DETAILS
withResultsPresentation(int $results_presentation)
const RESULTPRES_BIT_SOLUTION_LISTCOMPARE
withShowSolutionFeedback(bool $flag)
withExportSettings(int $exportsettings)
compareResultPresentation(int $bit)