4require_once 
'Services/Table/classes/class.ilTable2GUI.php';
 
    5require_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');
 
   74            $this->
disable(
'numinfo_header');
 
  100        if (array_key_exists(
'percentage', 
$row)) {
 
  101            $row[
'percentage'] = sprintf(
'%.2f', 
$row[
'percentage']) . 
'%';
 
  108                $this->tpl->setVariable(
'VAL_SCORED', 
$row[
'scored'] ? 
'⊗' : 
'');
 
  114        $this->tpl->setVariable(
'VAL_DATE', $this->
formatDate(
$row[
'date']));
 
  117            $this->tpl->setVariable(
'VAL_LO_OBJECTIVES', 
$row[
'objectives']);
 
  119            $this->tpl->setVariable(
'VAL_LO_TRY', sprintf(
 
  120                $this->lng->txt(
'tst_res_lo_try_n'),
 
  121                $this->getPassNumberPresentation(
$row[
'pass'])
 
  127                $row[
'num_workedthrough_questions'],
 
  128                $row[
'num_questions_total']
 
  131            if ($this->
getParentObject()->object->isOfferingQuestionHintsEnabled()) {
 
  132                $this->tpl->setVariable(
'VAL_HINTS', 
$row[
'hints']);
 
  136                $row[
'reached_points'],
 
  140            $this->tpl->setVariable(
'VAL_PERCENTAGE', 
$row[
'percentage']);
 
  152            $this->
addColumn($this->lng->txt(
'scored_pass'), 
'', 
'150');
 
  156            $this->
addColumn($this->lng->txt(
'pass'), 
'', 
'1%');
 
  159        $this->
addColumn($this->lng->txt(
'date'));
 
  162            $this->
addColumn($this->lng->txt(
'tst_res_lo_objectives_header'), 
'');
 
  163            $this->
addColumn($this->lng->txt(
'tst_res_lo_try_header'), 
'');
 
  167            $this->
addColumn($this->lng->txt(
'tst_answered_questions'));
 
  168            if ($this->
getParentObject()->object->isOfferingQuestionHintsEnabled()) {
 
  169                $this->
addColumn($this->lng->txt(
'tst_question_hints_requested_hint_count_header'));
 
  171            $this->
addColumn($this->lng->txt(
'tst_reached_points'));
 
  172            $this->
addColumn($this->lng->txt(
'tst_percent_solved'));
 
  292        return "{$numQuestionsWorkedThrough} {$this->lng->txt('of')} {$numQuestionsTotal}";
 
  297        return "{$reachedPoints} {$this->lng->txt('of')} {$maxPoints}";
 
  320        if (!count($actions)) {
 
  324        $ilCtrl->setParameter($this->parent_obj, 
'pass', 
$pass);
 
  326        if (count($actions) > 1) {
 
  328            $aslgui->setListTitle($this->lng->txt(
'actions'));
 
  329            $aslgui->setId(
$pass);
 
  331            foreach ($actions as $cmd => $label) {
 
  332                $aslgui->addItem($label, $cmd, 
$ilCtrl->getLinkTarget($this->parent_obj, $cmd));
 
  335            $html = $aslgui->getHTML();
 
  337            $cmd = key($actions);
 
  338            $label = current($actions);
 
  340            $href = 
$ilCtrl->getLinkTarget($this->parent_obj, $cmd);
 
  341            $html = 
'<a href="' . $href . 
'">' . $label . 
'</a>';
 
  344        $ilCtrl->setParameter($this->parent_obj, 
'pass', 
'');
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
static setUseRelativeDates($a_status)
set use relative dates
static useRelativeDates()
check if relative dates are used
@classDescription Date and time handling
getParentObject()
Get parent object.
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.
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.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
disable($a_module_name)
diesables particular modules of table
Class ilTestPassOverviewTableGUI.
getRequiredActions($isScoredPass)
buildWorkedThroughQuestionsString($numQuestionsWorkedThrough, $numQuestionsTotal)
setResultPresentationEnabled($resultPresentationEnabled)
buildActionsHtml($actions, $pass)
$resultPresentationEnabled
setObjectiveOrientedPresentationEnabled($objectiveOrientedPresentationEnabled)
getPassNumberPresentation($pass)
setPdfPresentationEnabled($pdfPresentationEnabled)
$objectiveOrientedPresentationEnabled
buildReachedPointsString($reachedPoints, $maxPoints)
setPassDetailsCommand($passDetailsCommand)
__construct($parent, $cmd)
setPassDeletionCommand($passDeletionCommand)
isPdfPresentationEnabled()
isResultPresentationEnabled()
isObjectiveOrientedPresentationEnabled()