5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
6 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
7 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
29 $this->
setId(
"lm_qst".$this->lm->getId());
36 $this->
addColumn($this->lng->txt(
"question"));
37 $this->
addColumn($this->lng->txt(
"cont_users_answered"));
38 $this->
addColumn($this->lng->txt(
"cont_correct_after_first"));
39 $this->
addColumn($this->lng->txt(
"cont_second"));
40 $this->
addColumn($this->lng->txt(
"cont_third_and_more"));
41 $this->
addColumn($this->lng->txt(
"cont_never"));
47 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $this->parent_cmd));
48 $this->
setRowTemplate(
"tpl.lm_question_row.html",
"Modules/LearningModule");
73 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
83 if (count($questions[
"set"]) == 0 && $this->
getOffset() > 0)
96 $this->
setData($questions[
"set"]);
107 $this->tpl->setVariable(
"PAGE_TITLE",
109 $this->tpl->setVariable(
"QUESTION",
112 include_once(
"./Services/COPage/classes/class.ilPageQuestionProcessor.php");
115 $this->tpl->setVariable(
"VAL_ANSWERED", (
int) $stats[
"all"]);
116 if ($stats[
"all"] == 0)
118 $this->tpl->setVariable(
"VAL_CORRECT_FIRST", 0);
119 $this->tpl->setVariable(
"VAL_CORRECT_SECOND", 0);
120 $this->tpl->setVariable(
"VAL_CORRECT_THIRD_OR_MORE", 0);
121 $this->tpl->setVariable(
"VAL_NEVER", 0);
125 $this->tpl->setVariable(
"VAL_CORRECT_FIRST", $stats[
"first"].
126 " (".(100/$stats[
"all"] * $stats[
"first"]).
" %)");
127 $this->tpl->setVariable(
"VAL_CORRECT_SECOND", $stats[
"second"].
128 " (".(100/$stats[
"all"] * $stats[
"second"]).
" %)");
129 $this->tpl->setVariable(
"VAL_CORRECT_THIRD_AND_MORE", $stats[
"third_or_more"].
130 " (".(100/$stats[
"all"] * $stats[
"third_or_more"]).
" %)");
131 $nev = $stats[
"all"] - $stats[
"first"] - $stats[
"second"] - $stats[
"third_or_more"];
132 $this->tpl->setVariable(
"VAL_NEVER", $nev.
133 " (".(100/$stats[
"all"] * $nev).
" %)");