5 require_once
'Services/Table/classes/class.ilTable2GUI.php';
42 $this->
setId($tableId);
45 parent::__construct($a_parent_obj, $a_parent_cmd);
53 $this->
setStyle(
'table',
'fullwidth');
55 $this->
setRowTemplate(
"tpl.il_as_tst_dynamic_question_set_selection_row.html",
"Modules/Test");
57 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
85 $this->
setTitle($this->lng->txt($titleLangVar));
88 public function initColumns($totalQuestionsColumnHeaderLangVar)
90 $this->
addColumn($this->lng->txt($totalQuestionsColumnHeaderLangVar),
'num_total_questions',
'250');
92 $this->
addColumn($this->lng->txt(
"tst_num_correct_answered_questions"),
'num_correct_answered_questions',
'');
93 $this->
addColumn($this->lng->txt(
"tst_num_wrong_answered_questions"),
'num_wrong_answered_questions',
'');
94 $this->
addColumn($this->lng->txt(
"tst_num_non_answered_questions_skipped"),
'num_non_answered_questions_skipped',
'');
95 $this->
addColumn($this->lng->txt(
"tst_num_non_answered_questions_notseen"),
'num_non_answered_questions_notseen',
'');
104 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
106 foreach ($this->taxIds as $taxId) {
107 $postvar =
"tax_$taxId";
111 #$inp->readFromSession(); 117 $this->filter[$postvar] = $inp->getValue();
122 require_once
'Services/Form/classes/class.ilSelectInputGUI.php';
123 require_once
'Services/Form/classes/class.ilRadioOption.php';
125 $inp =
new ilSelectInputGUI($this->lng->txt(
'tst_question_answer_status'),
'question_answer_status');
132 $inp->readFromSession();
138 $this->filter[
'question_answer_status'] = $inp->getValue();
151 $this->tpl->setVariable(
'NUM_ALL_QUESTIONS',
$data[
'total_all']);
152 $this->tpl->setVariable(
'NUM_CORRECT_ANSWERED_QUESTIONS',
$data[
'correct_answered']);
153 $this->tpl->setVariable(
'NUM_WRONG_ANSWERED_QUESTIONS',
$data[
'wrong_answered']);
154 $this->tpl->setVariable(
'NUM_NON_ANSWERED_QUESTIONS_SKIPPED',
$data[
'non_answered_skipped']);
155 $this->tpl->setVariable(
'NUM_NON_ANSWERED_QUESTIONS_NOTSEEN',
$data[
'non_answered_notseen']);
This class provides processing control methods.
setStyle($a_element, $a_style)
setFilterSelection($filterSelection)
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
setTaxonomyFilterEnabled($taxonomyFilterEnabled)
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.
Create styles array
The data for the language used.
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
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct(ilCtrl $ctrl, ilLanguage $lng, $a_parent_obj, $a_parent_cmd, $tableId)
Constructor.
initColumns($totalQuestionsColumnHeaderLangVar)
isTaxonomyFilterEnabled()