19 declare(strict_types=1);
    45         $this->
setId(
'tst_pass_overview_' . $parent->
getObject()->getId());
    56         $this->ui_factory = $DIC->ui()->factory();
    57         $this->ui_renderer = $DIC->ui()->renderer();
    59         $this->
setRowTemplate(
'tpl.il_as_tst_pass_overview_row.html', 
'Modules/Test');
    62     public function init(): void
    64         $this->
ctrl->setParameter($this->parent_obj, 
'active_id', $this->
getActiveId());
    71             $this->
disable(
'numinfo_header');
    88     public function fillRow(array $a_set): void
    90         if (array_key_exists(
'percentage', $a_set)) {
    91             $a_set[
'percentage'] = sprintf(
'%.2f', $a_set[
'percentage']) . 
'%';
    98                 $this->tpl->setVariable(
'VAL_SCORED', $a_set[
'scored'] ? 
'⊗' : 
'');
   104         $this->tpl->setVariable(
'VAL_DATE', $this->
formatDate($a_set[
'date']));
   107             $this->tpl->setVariable(
'VAL_LO_OBJECTIVES', $a_set[
'objectives']);
   109             $this->tpl->setVariable(
'VAL_LO_TRY', sprintf(
   110                 $this->
lng->txt(
'tst_res_lo_try_n'),
   117                 $a_set[
'num_workedthrough_questions'],
   118                 $a_set[
'num_questions_total']
   121             if ($this->
getParentObject()->getObject()->isOfferingQuestionHintsEnabled()) {
   122                 $this->tpl->setVariable(
'VAL_HINTS', $a_set[
'hints']);
   126                 $a_set[
'reached_points'],
   130             $this->tpl->setVariable(
'VAL_PERCENTAGE', $a_set[
'percentage']);
   135             $this->tpl->setVariable(
'VAL_ACTIONS', $this->
buildActionsHtml($actions, $a_set[
'pass']));
   142             $this->
addColumn($this->
lng->txt(
'scored_pass'), 
'', 
'150');
   152             $this->
addColumn($this->
lng->txt(
'tst_res_lo_objectives_header'), 
'');
   153             $this->
addColumn($this->
lng->txt(
'tst_res_lo_try_header'), 
'');
   157             $this->
addColumn($this->
lng->txt(
'tst_answered_questions'));
   158             if ($this->
getParentObject()->getObject()->isOfferingQuestionHintsEnabled()) {
   159                 $this->
addColumn($this->
lng->txt(
'tst_question_hints_requested_hint_count_header'));
   161             $this->
addColumn($this->
lng->txt(
'tst_reached_points'));
   162             $this->
addColumn($this->
lng->txt(
'tst_percent_solved'));
   167             $this->
addColumn($this->
lng->txt(
'actions'), 
'', 
'10%');
   208         $this->activeId = (
int) $activeId;
   242         return "{$numQuestionsWorkedThrough} {$this->lng->txt('of')} {$numQuestionsTotal}";
   247         return "{$reachedPoints} {$this->lng->txt('of')} {$maxPoints}";
   267         if (!count($actions)) {
   271         $this->
ctrl->setParameter($this->parent_obj, 
'pass', $pass);
   273         if (count($actions) > 1) {
   274             foreach ($actions as $cmd => $label) {
   275                 $action_links[] = $this->ui_factory->link()->standard($label, $this->
ctrl->getLinkTarget($this->parent_obj, $cmd));
   277             $dropdown = $this->ui_factory->dropdown()->standard($action_links);
   278             $html = $this->ui_renderer->render($dropdown);
   280             $cmd = key($actions);
   281             $label = current($actions);
   283             $href = $this->
ctrl->getLinkTarget($this->parent_obj, $cmd);
   284             $html = 
'<a href="' . $href . 
'">' . $label . 
'</a>';
   287         $this->
ctrl->setParameter($this->parent_obj, 
'pass', 
'');
 isPdfPresentationEnabled()
 
numericOrdering(string $a_field)
 
isObjectiveOrientedPresentationEnabled()
 
getRequiredActions(?bool $isScoredPass)
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
string $passDeletionCommand
 
buildActionsHtml($actions, $pass)
 
buildReachedPointsString($reachedPoints, $maxPoints)
 
static useRelativeDates()
 
setDefaultOrderField(string $a_defaultorderfield)
 
setPdfPresentationEnabled(bool $pdfPresentationEnabled)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
Output class for assessment test evaluation. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setPassDetailsCommand(string $passDetailsCommand)
 
setResultPresentationEnabled(bool $resultPresentationEnabled)
 
Class ilTestPassOverviewTableGUI. 
 
__construct(ilTestEvaluationGUI $parent, string $cmd)
 
setObjectiveOrientedPresentationEnabled(bool $objectiveOrientedPresentationEnabled)
 
isResultPresentationEnabled()
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
string $passDetailsCommand
 
bool $objectiveOrientedPresentationEnabled
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
disable(string $a_module_name)
 
bool $resultPresentationEnabled
 
getPassNumberPresentation($pass)
 
bool $pdfPresentationEnabled
 
static setUseRelativeDates(bool $a_status)
set use relative dates 
 
buildWorkedThroughQuestionsString($numQuestionsWorkedThrough, $numQuestionsTotal)
 
setPassDeletionCommand(string $passDeletionCommand)