4require_once
'Services/Table/classes/class.ilTable2GUI.php';
5require_once
'Services/Tree/classes/class.ilPathGUI.php';
6require_once
'Services/Link/classes/class.ilLink.php';
28 $this->
setId(
'qst_usage_' . $question->
getId());
29 parent::__construct($controller,
$cmd);
31 $this->
setRowTemplate(
'tpl.il_as_qpl_question_cumulated_stats_table_row.html',
'Modules/TestQuestionPool');
37 $this->
setTitle($this->lng->txt(
'question_cumulated_statistics'));
38 $this->
setNoEntriesText($this->lng->txt(
'qpl_assessment_no_assessment_of_questions'));
53 $this->
addColumn($this->lng->txt(
'result'),
'result');
54 $this->
addColumn($this->lng->txt(
'value'),
'value');
64 $total_of_answers = $this->question->getTotalAnswers();
69 'result' => $this->lng->txt(
'qpl_assessment_total_of_answers'),
70 'value' => $total_of_answers,
75 'result' => $this->lng->txt(
'qpl_assessment_total_of_right_answers'),
94 if(
'value' == $a_field)
107 $this->tpl->setVariable(
'VAL_RESULT',
$row[
'result']);
108 $this->tpl->setVariable(
'VAL_VALUE',
$row[
'is_percent'] ?
sprintf(
"%2.2f",
$row[
'value'])
109 .
' %' :
$row[
'value']);
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Abstract basic class which is to be extended by the concrete assessment question type classes.
getId()
Gets the id of the assQuestion object.
static _getTotalRightAnswers($a_q_id)
get number of answers for question id (static) note: do not use $this inside this method
Class ilQuestionUsagesTableGUI.
numericOrdering($a_field)
__construct($controller, $cmd, $template_context, assQuestion $question)
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setNoEntriesText($a_text)
Set text for an empty table.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
disable($a_module_name)
diesables particular modules of table