4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
49 $this->
setId(
'tst_pass_overview_' . $parent->object->getId());
53 parent::__construct($parent, $cmd);
59 $this->
setRowTemplate(
'tpl.il_as_tst_pass_overview_row.html',
'Modules/Test');
66 $ilCtrl->setParameter($this->parent_obj,
'active_id', $this->
getActiveId());
73 $this->
disable(
'numinfo_header');
99 if (array_key_exists(
'percentage',
$row)) {
100 $row[
'percentage'] = sprintf(
'%.2f',
$row[
'percentage']) .
'%';
107 $this->tpl->setVariable(
'VAL_SCORED',
$row[
'scored'] ?
'⊗' :
'');
113 $this->tpl->setVariable(
'VAL_DATE', $this->
formatDate(
$row[
'date']));
116 $this->tpl->setVariable(
'VAL_LO_OBJECTIVES',
$row[
'objectives']);
118 $this->tpl->setVariable(
'VAL_LO_TRY', sprintf(
119 $this->lng->txt(
'tst_res_lo_try_n'),
126 $row[
'num_workedthrough_questions'],
127 $row[
'num_questions_total']
131 $this->tpl->setVariable(
'VAL_HINTS',
$row[
'hints']);
135 $row[
'reached_points'],
139 $this->tpl->setVariable(
'VAL_PERCENTAGE',
$row[
'percentage']);
151 $this->
addColumn($this->lng->txt(
'scored_pass'),
'',
'150');
155 $this->
addColumn($this->lng->txt(
'pass'),
'',
'1%');
158 $this->
addColumn($this->lng->txt(
'date'));
161 $this->
addColumn($this->lng->txt(
'tst_res_lo_objectives_header'),
'');
162 $this->
addColumn($this->lng->txt(
'tst_res_lo_try_header'),
'');
166 $this->
addColumn($this->lng->txt(
'tst_answered_questions'));
167 if ($this->
getParentObject()->object->isOfferingQuestionHintsEnabled()) {
168 $this->
addColumn($this->lng->txt(
'tst_question_hints_requested_hint_count_header'));
170 $this->
addColumn($this->lng->txt(
'tst_reached_points'));
171 $this->
addColumn($this->lng->txt(
'tst_percent_solved'));
291 return "{$numQuestionsWorkedThrough} {$this->lng->txt('of')} {$numQuestionsTotal}";
296 return "{$reachedPoints} {$this->lng->txt('of')} {$maxPoints}";
318 if (!count($actions)) {
322 $ilCtrl->setParameter($this->parent_obj,
'pass',
$pass);
324 if (count($actions) > 1) {
326 $aslgui->setListTitle($this->lng->txt(
'actions'));
327 $aslgui->setId(
$pass);
329 foreach ($actions as $cmd => $label) {
330 $aslgui->addItem($label, $cmd, $ilCtrl->getLinkTarget($this->parent_obj, $cmd));
333 $html = $aslgui->getHTML();
335 $cmd = key($actions);
336 $label = current($actions);
338 $href = $ilCtrl->getLinkTarget($this->parent_obj, $cmd);
339 $html =
'<a href="' . $href .
'">' . $label .
'</a>';
342 $ilCtrl->setParameter($this->parent_obj,
'pass',
'');
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
$objectiveOrientedPresentationEnabled
isPdfPresentationEnabled()
setPdfPresentationEnabled($pdfPresentationEnabled)
isObjectiveOrientedPresentationEnabled()
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
static setUseRelativeDates($a_status)
set use relative dates
getParentObject()
Get parent object.
buildActionsHtml($actions, $pass)
buildReachedPointsString($reachedPoints, $maxPoints)
static useRelativeDates()
check if relative dates are used
setResultPresentationEnabled($resultPresentationEnabled)
$resultPresentationEnabled
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setObjectiveOrientedPresentationEnabled($objectiveOrientedPresentationEnabled)
Class ilTestPassOverviewTableGUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
setPassDeletionCommand($passDeletionCommand)
disable($a_module_name)
diesables particular modules of table
isResultPresentationEnabled()
Create new PHPExcel object
obj_idprivate
__construct($parent, $cmd)
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.
setPassDetailsCommand($passDetailsCommand)
getRequiredActions($isScoredPass)
getPassNumberPresentation($pass)
buildWorkedThroughQuestionsString($numQuestionsWorkedThrough, $numQuestionsTotal)
setLimit($a_limit=0, $a_default_limit=0)