19 declare(strict_types=1);
85 $this->headerMode = null;
86 $this->questionTitle =
'';
87 $this->questionPoints = 0.0;
88 $this->questionPosition = 0;
89 $this->questionCount = 0;
90 $this->questionPostponed =
false;
91 $this->questionObligatory =
false;
92 $this->questionRelatedObjectives =
'';
259 return "{$this->getQuestionPoints()} {$this->lng->txt('point')}";
262 return "{$this->getQuestionPoints()} {$this->lng->txt('points')}";
268 return $this->
lng->txt(
"postponed");
277 return $this->
lng->txt(
"tst_you_have_to_answer_this_question");
286 $label = $this->
lng->txt(
'tst_res_lo_objectives_header');
327 $tpl =
new ilTemplate(
'tpl.tst_question_info.html',
true,
true,
'Modules/Test');
350 $tpl->setVariable(
'TXT_POSITION_POINTS', $text);
364 $tpl->setVariable(
'HIDDEN_NOT_ANSWERED',
'hidden');
366 $tpl->setVariable(
'HIDDEN_ANSWERED',
'hidden');
371 $tpl->setVariable(
'TXT_ANSWERED', $this->
lng->txt(
'tst_answer_status_answered'));
372 $tpl->setVariable(
'TXT_NOT_ANSWERED', $this->
lng->txt(
'tst_answer_status_not_answered'));
373 $tpl->setVariable(
'TXT_EDITING', $this->
lng->txt(
'tst_answer_status_editing'));
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)