4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
35 $this->
setId(
'tst_pass_overview_' .
$context .
'_' . $parent->object->getId());
47 $this->
disable(
'numinfo_header');
53 $this->
setRowTemplate(
'tpl.il_as_tst_pass_overview_row.html',
'Modules/Test');
83 if(array_key_exists(
'percentage', $row))
85 $row[
'percentage'] = sprintf(
'%.2f', $row[
'percentage']) .
'%';
88 if($this->pdf_view && array_key_exists(
'pass_details', $row))
90 unset($row[
'pass_details']);
93 parent::fillRow($row);
103 $this->
addColumn($this->lng->txt(
'scored_pass'),
'',
'150');
105 $this->
addColumn($this->lng->txt(
'pass'),
'',
'1%');
106 $this->
addColumn($this->lng->txt(
'date'));
109 $this->
addColumn($this->lng->txt(
'tst_answered_questions'));
112 $this->
addColumn($this->lng->txt(
'tst_question_hints_requested_hint_count_header'));
114 $this->
addColumn($this->lng->txt(
'tst_reached_points'));
115 $this->
addColumn($this->lng->txt(
'tst_percent_solved'));
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static setUseRelativeDates($a_status)
set use relative dates
getParentObject()
Get parent object.
static useRelativeDates()
check if relative dates are used
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
static formatDate(ilDateTime $date)
Format a date public.
Class ilTestPassOverviewTableGUI.
__construct($parent, $cmd, $context=self::CONTEXT_SHORT, $pdf_view=false)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
disable($a_module_name)
diesables particular modules of table