19 declare(strict_types=1);
41 array $environment = null
43 $trafo = $refinery->kindlyTo()->Int();
45 'count_system' => $f->radio($lng->
txt(
'tst_text_count_system'),
"")
46 ->withOption(
'0', $lng->
txt(
'tst_count_partial_solutions'), $lng->
txt(
'tst_count_partial_solutions_desc'))
47 ->withOption(
'1', $lng->
txt(
'tst_count_correct_solutions'), $lng->
txt(
'tst_count_correct_solutions_desc'))
50 'score_cutting' => $f->radio($lng->
txt(
'tst_score_cutting'),
"")
51 ->withOption(
'0', $lng->
txt(
'tst_score_cut_question'), $lng->
txt(
'tst_score_cut_question_desc'))
52 ->withOption(
'1', $lng->
txt(
'tst_score_cut_test'), $lng->
txt(
'tst_score_cut_test_desc'))
55 'pass_scoring' => $f->radio($lng->
txt(
'tst_pass_scoring'),
"")
56 ->withOption(
'0', $lng->
txt(
'tst_pass_last_pass'), $lng->
txt(
'tst_pass_last_pass_desc'))
57 ->withOption(
'1', $lng->
txt(
'tst_pass_best_pass'), $lng->
txt(
'tst_pass_best_pass_desc'))
61 return $f->section($fields, $lng->
txt(
'test_scoring'))
63 $refinery->custom()->transformation(
101 $clone = clone $this;
112 $clone = clone $this;
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...
__construct(int $test_id)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
withCountSystem(int $count_system)
withPassScoring(int $pass_scoring)
__construct(Container $dic, ilPlugin $plugin)
withScoreCutting(int $score_cutting)
Refinery Factory $refinery