5 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
6 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
25 $this->
setId(
'tst_participants_' . $a_parent_obj->getTestObj()->getRefId());
26 parent::__construct($a_parent_obj, $a_parent_cmd);
29 $this->lng = $DIC->language();
30 $this->ctrl = $DIC->ctrl();
32 $this->
setStyle(
'table',
'fullwidth');
35 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
37 $this->
setRowTemplate(
"tpl.il_as_tst_scorings_row.html",
"Modules/Test");
102 return in_array($field, array(
103 'scored_pass',
'answered_questions',
'reached_points',
'percent_result' 124 $this->
addColumn($this->lng->txt(
"name"),
'name');
125 $this->
addColumn($this->lng->txt(
"login"),
'login');
127 $this->
addColumn($this->lng->txt(
"tst_tbl_col_scored_pass"),
'scored_pass');
128 $this->
addColumn($this->lng->txt(
"tst_tbl_col_pass_finished"),
'pass_finished');
130 $this->
addColumn($this->lng->txt(
"tst_tbl_col_answered_questions"),
'answered_questions');
131 $this->
addColumn($this->lng->txt(
"tst_tbl_col_reached_points"),
'reached_points');
132 $this->
addColumn($this->lng->txt(
"tst_tbl_col_percent_result"),
'percent_result');
134 $this->
addColumn($this->lng->txt(
"tst_tbl_col_passed_status"),
'passed_status');
135 $this->
addColumn($this->lng->txt(
"tst_tbl_col_final_mark"),
'final_mark');
145 $this->
addMultiCommand(
'showPassOverview', $this->lng->txt(
'show_pass_overview'));
146 $this->
addMultiCommand(
'showUserAnswers', $this->lng->txt(
'show_user_answers'));
147 $this->
addMultiCommand(
'showDetailedResults', $this->lng->txt(
'show_detailed_results'));
151 $this->
addMultiCommand(
'deleteSingleUserResults', $this->lng->txt(
'delete_user_data'));
168 $this->tpl->setCurrentBlock(
'checkbox_column');
169 $this->tpl->setVariable(
"CHB_ROW_KEY",
$data[
'active_id']);
170 $this->tpl->parseCurrentBlock();
174 $this->tpl->setCurrentBlock(
'actions_column');
176 $this->tpl->parseCurrentBlock();
179 $this->tpl->setVariable(
"ROW_KEY",
$data[
'active_id']);
180 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
181 $this->tpl->setVariable(
"FULLNAME",
$data[
'name']);
191 $this->tpl->setVariable(
"FINAL_MARK",
$data[
'final_mark']);
202 $this->ctrl->setParameterByClass(
'iltestevaluationgui',
'active_id',
$data[
'active_id']);
205 $resultsHref = $this->ctrl->getLinkTargetByClass(
'ilTestEvaluationGUI',
'outParticipantsResultsOverview');
206 $asl->addItem($this->lng->txt(
'tst_show_results'), $resultsHref, $resultsHref);
243 if (
$data[
'passed_status']) {
273 return "<img border=\"0\" align=\"middle\" src=\"" . $src .
"\" alt=\"" . $alt .
"\" />";
291 return $this->lng->txt(
'pass') .
' ' . (
$data[
'scored_pass'] + 1);
310 $this->lng->txt(
'tst_answered_questions_of_total'),
311 $data[
'answered_questions'],
312 $data[
'total_questions']
323 $this->lng->txt(
'tst_reached_points_of_max'),
324 $data[
'reached_points'],
335 return sprintf(
'%0.2f %%',
$data[
'percent_result'] * 100);
buildImageIcon($src, $alt)
buildScoredPassString($data)
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
isAccessResultsCommandsEnabled()
setStyle($a_element, $a_style)
buildFormattedAccessDate($data)
$manageResultsCommandsEnabled
$accessResultsCommandsEnabled
isMultiRowSelectionRequired()
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
isManageResultsCommandsEnabled()
setAccessResultsCommandsEnabled($accessResultsCommandsEnabled)
buildPassFinishedString($data)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setManageResultsCommandsEnabled($manageResultsCommandsEnabled)
buildAnsweredQuestionsString($data)
buildPercentResultString($data)
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
__construct($a_parent_obj, $a_parent_cmd)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
isActionsColumnRequired()
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
buildPassedStatusString($data)
buildReachedPointsString($data)