4 require_once
'Modules/TestQuestionPool/interfaces/interface.ilQuestionHeaderBlockBuilder.php';
70 $this->headerMode = null;
71 $this->questionTitle =
'';
72 $this->questionPoints = 0.0;
73 $this->questionPosition = 0;
74 $this->questionCount = 0;
75 $this->questionPostponed =
false;
76 $this->questionObligatory =
false;
77 $this->questionRelatedObjectives =
'';
239 return sprintf($this->lng->txt(
"tst_position_without_total"), $this->
getQuestionPosition());
247 return "{$this->getQuestionPoints()} {$this->lng->txt('point')}";
250 return "{$this->getQuestionPoints()} {$this->lng->txt('points')}";
257 return $this->lng->txt(
"postponed");
267 return $this->lng->txt(
"tst_you_have_to_answer_this_question");
277 $label = $this->lng->txt(
'tst_res_lo_objectives_header');
316 $tpl =
new ilTemplate(
'tpl.tst_question_info.html',
true,
true,
'Modules/Test');
338 $tpl->setVariable(
'TXT_POSITION_POINTS',
$text);
355 $tpl->setVariable(
'HIDDEN_NOT_ANSWERED',
'hidden');
359 $tpl->setVariable(
'HIDDEN_ANSWERED',
'hidden');
364 $tpl->setVariable(
'TXT_ANSWERED', $this->lng->txt(
'tst_answer_status_answered'));
365 $tpl->setVariable(
'TXT_NOT_ANSWERED', $this->lng->txt(
'tst_answer_status_not_answered'));
366 $tpl->setVariable(
'TXT_EDITING', $this->lng->txt(
'tst_answer_status_editing'));
380 $headerBlock .=
" - ".$this->getQuestionTitle();
394 $headerBlock .=
" - ".$this->getQuestionTitle();
397 $headerBlock .=
' ('.$this->buildQuestionPointsString().
')';
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR