19declare(strict_types=1);
33 protected ?
int $question_index,
34 protected string $value,
35 protected ?
int $answer_index =
null
38 $msg =
"The value \"{$value}\" does not exist for the current question";
40 $msg =
"The value \"{$value}\" does not exist for the answer with index \"{$this->getAnswerIndex()}\" of the current question";
42 $msg =
"The value \"{$value}\" does not exist for the question Q{$this->getQuestionIndex()}";
44 $msg =
"The value \"{$value}\" does not exist for the question Q{$this->getQuestionIndex()}[{$this->getAnswerIndex()}]";
52 return $this->question_index;
57 return $this->answer_index;
69 $lng->txt(
'ass_lac_answer_value_not_exists_cur_qst_one_answer'),
76 $lng->txt(
'ass_lac_answer_value_not_exists_cur_qst'),
78 $this->getAnswerIndex()
84 $lng->txt(
'ass_lac_answer_value_not_exists_one_answer'),
86 $this->getQuestionIndex()
91 $lng->txt(
'ass_lac_answer_value_not_exists'),
93 $this->getQuestionIndex(),
94 $this->getAnswerIndex()
getFormAlert(ilLanguage $lng)
__construct(protected ?int $question_index, protected string $value, protected ?int $answer_index=null)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc