19 declare(strict_types=1);
    35         protected bool $anonymous_test = 
false    48         array $environment = null
    50         $inputs[
'question_set_type'] = $f->radio(
    51             $lng->
txt(
'test_question_set_type')
    54             $lng->
txt(
'test_question_set_type_fixed'),
    55             $lng->
txt(
'test_question_set_type_fixed_info')
    58             $lng->
txt(
'test_question_set_type_random'),
    59             $lng->
txt(
'test_question_set_type_random_info')
    62         $trafo = $refinery->custom()->transformation(
    63             static function (
string $v): 
bool {
    72         $inputs[
'anonymity'] = $f->radio(
    73             $lng->
txt(
'tst_anonymity')
    76             $lng->
txt(
'tst_anonymity_no_anonymization')
    79             $lng->
txt(
'tst_anonymity_anonymous_test')
    83         if ($environment[
'participant_data_exists']) {
    84             $inputs[
'question_set_type'] = 
$inputs[
'question_set_type']->withDisabled(
true);
   102             case  \ilObjTest::QUESTION_SET_TYPE_FIXED:
   106             case \ilObjTest::QUESTION_SET_TYPE_RANDOM:
   119         return $this->question_set_type;
   124         $clone = clone $this;
   125         $clone->question_set_type = $question_set_type;
   131         return $this->anonymous_test;
   136         $clone = clone $this;
   137         $clone->anonymous_test = $anonymous_test;
 
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...
 
const QUESTION_SET_TYPE_RANDOM
 
toLog(AdditionalInformationGenerator $additional_info)
 
__construct(int $test_id, protected string $question_set_type=\ilObjTest::QUESTION_SET_TYPE_FIXED, protected bool $anonymous_test=false)
 
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
 
withQuestionSetType(string $question_set_type)
 
withAnonymity(bool $anonymous_test)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(Container $dic, ilPlugin $plugin)
 
const QUESTION_SET_TYPE_FIXED