5 require_once
'Services/Table/classes/class.ilTable2GUI.php';
52 $this->
setId($tableId);
55 parent::__construct($a_parent_obj, $a_parent_cmd);
63 $this->
setStyle(
'table',
'fullwidth');
65 $this->
setRowTemplate(
"tpl.il_as_tst_dynamic_question_set_selection_row.html",
"Modules/Test");
67 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
95 $this->
setTitle($this->lng->txt($titleLangVar));
98 public function initColumns($totalQuestionsColumnHeaderLangVar)
100 $this->
addColumn($this->lng->txt($totalQuestionsColumnHeaderLangVar),
'num_total_questions',
'250');
102 $this->
addColumn($this->lng->txt(
"tst_num_correct_answered_questions"),
'num_correct_answered_questions',
'');
103 $this->
addColumn($this->lng->txt(
"tst_num_wrong_answered_questions"),
'num_wrong_answered_questions',
'');
104 $this->
addColumn($this->lng->txt(
"tst_num_non_answered_questions"),
'num_non_answered_questions',
'');
108 $this->
addColumn($this->lng->txt(
"tst_num_postponed_questions"),
'num_postponed_questions',
'');
113 $this->
addColumn($this->lng->txt(
"tst_num_marked_questions"),
'num_marked_questions',
'');
124 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
126 foreach($this->taxIds as $taxId)
128 $postvar =
"tax_$taxId";
132 $inp->readFromSession();
139 $this->filter[$postvar] = $inp->getValue();
145 require_once
'Services/Form/classes/class.ilSelectInputGUI.php';
146 require_once
'Services/Form/classes/class.ilRadioOption.php';
148 $inp =
new ilSelectInputGUI($this->lng->txt(
'tst_question_answer_status'),
'question_answer_status');
155 $inp->readFromSession();
162 $this->filter[
'question_answer_status'] = $inp->getValue();
175 $this->tpl->setVariable(
'NUM_ALL_QUESTIONS',
$data[
'total_all']);
176 $this->tpl->setVariable(
'NUM_CORRECT_ANSWERED_QUESTIONS',
$data[
'correct_answered']);
177 $this->tpl->setVariable(
'NUM_WRONG_ANSWERED_QUESTIONS',
$data[
'wrong_answered']);
178 $this->tpl->setVariable(
'NUM_NON_ANSWERED_QUESTIONS',
$data[
'non_answered']);
182 $this->tpl->setCurrentBlock(
'num_postponed');
183 $this->tpl->setVariable(
"NUM_POSTPONED_QUESTIONS",
$data[
'postponed']);
184 $this->tpl->parseCurrentBlock();
189 $this->tpl->setCurrentBlock(
'num_marked');
190 $this->tpl->setVariable(
"NUM_MARKED_QUESTIONS",
$data[
'marked']);
191 $this->tpl->parseCurrentBlock();
$showNumPostponedQuestionsEnabled
setShowNumPostponedQuestionsEnabled($showNumPostponedQuestionsEnabled)
setFormName($a_formname)
Set Form name.
This class provides processing control methods.
setStyle($a_element, $a_style)
setFilterSelection($filterSelection)
setShowNumMarkedQuestionsEnabled($showNumMarkedQuestionsEnabled)
setAnswerStatusFilterEnabled($answerStatusFilterEnabled)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
const ANSWER_STATUS_FILTER_NON_ANSWERED_ONLY
isShowNumPostponedQuestionsEnabled()
setTaxonomyFilterEnabled($taxonomyFilterEnabled)
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
$showNumMarkedQuestionsEnabled
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
enable($a_module_name)
enables particular modules of table
const ANSWER_STATUS_FILTER_WRONG_ANSWERED_ONLY
isAnswerStatusFilterEnabled()
setRowTemplate($a_template, $a_template_dir="")
Set row template.
const ANSWER_STATUS_FILTER_ALL_NON_CORRECT
answer status filter value domain
$answerStatusFilterEnabled
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
isShowNumMarkedQuestionsEnabled()
__construct(ilCtrl $ctrl, ilLanguage $lng, $a_parent_obj, $a_parent_cmd, $tableId)
Constructor.
initColumns($totalQuestionsColumnHeaderLangVar)
isTaxonomyFilterEnabled()