43 $this->
setId($tableId);
50 $ilCtrl =
$DIC[
'ilCtrl'];
52 $this->
ctrl = $ilCtrl;
56 $this->
setStyle(
'table',
'fullwidth');
58 $this->
setRowTemplate(
"tpl.il_as_tst_dynamic_question_set_selection_row.html",
"Modules/Test");
80 public function initTitle(
string $titleLangVar): void
85 public function initColumns(
string $totalQuestionsColumnHeaderLangVar): void
87 $this->
addColumn($this->
lng->txt($totalQuestionsColumnHeaderLangVar),
'num_total_questions',
'250');
89 $this->
addColumn($this->
lng->txt(
"tst_num_correct_answered_questions"),
'num_correct_answered_questions',
'');
90 $this->
addColumn($this->
lng->txt(
"tst_num_wrong_answered_questions"),
'num_wrong_answered_questions',
'');
91 $this->
addColumn($this->
lng->txt(
"tst_num_non_answered_questions_skipped"),
'num_non_answered_questions_skipped',
'');
92 $this->
addColumn($this->
lng->txt(
"tst_num_non_answered_questions_notseen"),
'num_non_answered_questions_notseen',
'');
98 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
100 foreach ($this->taxIds as $taxId) {
101 $postvar =
"tax_$taxId";
105 #$inp->readFromSession();
111 $this->
filter[$postvar] = $inp->getValue();
116 require_once
'Services/Form/classes/class.ilSelectInputGUI.php';
117 require_once
'Services/Form/classes/class.ilRadioOption.php';
119 $inp =
new ilSelectInputGUI($this->
lng->txt(
'tst_question_answer_status'),
'question_answer_status');
120 $inp->setOptions(array(
126 $inp->readFromSession();
132 $this->
filter[
'question_answer_status'] = $inp->getValue();
138 $this->tpl->setVariable(
'NUM_ALL_QUESTIONS', $a_set[
'total_all']);
139 $this->tpl->setVariable(
'NUM_CORRECT_ANSWERED_QUESTIONS', $a_set[
'correct_answered']);
140 $this->tpl->setVariable(
'NUM_WRONG_ANSWERED_QUESTIONS', $a_set[
'wrong_answered']);
141 $this->tpl->setVariable(
'NUM_NON_ANSWERED_QUESTIONS_SKIPPED', $a_set[
'non_answered_skipped']);
142 $this->tpl->setVariable(
'NUM_NON_ANSWERED_QUESTIONS_NOTSEEN', $a_set[
'non_answered_notseen']);
const ANSWER_STATUS_FILTER_ALL_NON_CORRECT
answer status filter value domain
const ANSWER_STATUS_FILTER_WRONG_ANSWERED_ONLY
const ANSWER_STATUS_FILTER_NON_ANSWERED_ONLY
Class ilCtrl provides processing control methods.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
setFormName(string $a_name="")
setPrefix(string $a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setDisableFilterHiding(bool $a_val=true)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
enable(string $a_module_name)
setStyle(string $a_element, string $a_style)
disable(string $a_module_name)
initColumns(string $totalQuestionsColumnHeaderLangVar)
initTitle(string $titleLangVar)
setFilterSelection(ilTestDynamicQuestionSetFilterSelection $filterSelection)
bool $taxonomyFilterEnabled
__construct(ilCtrl $ctrl, ilLanguage $lng, $a_parent_obj, $a_parent_cmd, $tableId)
fillRow(array $a_set)
Standard Version of Fill Row.
ilTestDynamicQuestionSetFilterSelection $filterSelection
bool $answerStatusFilterEnabled
setAnswerStatusFilterEnabled(bool $answerStatusFilterEnabled)
isTaxonomyFilterEnabled()
isAnswerStatusFilterEnabled()
setTaxonomyFilterEnabled(bool $taxonomyFilterEnabled)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc