3 declare(strict_types=0);
    33         $this->parent_container = $a_parent_obj;
    34         $this->
setId(
'lomemtstres_' . $a_parent_obj->
getId());
    51         $this->current_user = $a_id;
    59     public function init(): void
    63         if (strlen($name[
'firstname']) && strlen($name[
'lastname'])) {
    64             $name_string = $name[
'lastname'] . 
', ' . $name[
'firstname'] . 
' [' . $name[
'login'] . 
']';
    65         } elseif (strlen($name[
'lastname']) !== 0) {
    66             $name_string = $name[
'lastname'] . 
' [' . $name[
'login'] . 
']';
    68             $name_string = $name[
'login'];
    70         $this->
setTitle($this->
lng->txt(
'crs_loc_test_results_of') . 
' ' . $name_string);
    71         $this->
addColumn($this->
lng->txt(
'crs_objectives'), 
'title', 
'50%');
    73             $this->
addColumn($this->
lng->txt(
'crs_loc_itest_info'), 
'it', 
'25%');
    74             $this->
addColumn($this->
lng->txt(
'crs_loc_qtest_info'), 
'qt', 
'25%');
    76             $this->
addColumn($this->
lng->txt(
'crs_loc_qtest_info'), 
'qt', 
'25%');
    78         $this->
setRowTemplate(
'tpl.crs_objectives_usr_result_row.html', 
'Modules/Course');
    83     protected function fillRow(array $a_set): void
    85         $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
    87             if ($a_set[
'has_result_it']) {
    88                 $this->tpl->setCurrentBlock(
'it_has_result');
    89                 $this->tpl->setVariable(
'IT_LINK', $a_set[
'link_it']);
    90                 $this->tpl->setVariable(
'IT_VAL', $a_set[
'res_it'] . 
'%');
    91                 $this->tpl->parseCurrentBlock();
    93                 $this->tpl->setVariable(
'IT_NO_RES', 
'-');
    97         if ($a_set[
'has_result_qt']) {
    98             $this->tpl->setCurrentBlock(
'qt_has_result');
    99             $this->tpl->setVariable(
'QT_LINK', $a_set[
'link_qt']);
   100             $this->tpl->setVariable(
'QT_VAL', $a_set[
'res_qt'] . 
'%');
   101             $this->tpl->parseCurrentBlock();
   103             $this->tpl->setVariable(
'QT_NO_RES', 
'-');
   111         foreach ($objective_ids as $objective_id) {
   112             $objective = array();
   113             $objective[
'id'] = $objective_id;
   116             if ($this->
getSettings()->worksWithInitialTest()) {
   123                 $objective[
'tries_it'] = $results_it[
'tries'];
   124                 $objective[
'res_it'] = $results_it[
'result_perc'];
   126                 $objective[
'has_result_it'] = (bool) $results_it[
'has_result'];
   134             $objective[
'tries_qt'] = $results_qt[
'tries'];
   135             $objective[
'res_qt'] = $results_qt[
'result_perc'];
   137             $objective[
'has_result_qt'] = (bool) $results_qt[
'has_result'];
   139             $tbl_data[] = $objective;
   148         $test_ref_id = $assignments->getTestByObjective($a_objective_id, $a_type);
   149         if ($test_ref_id === 0) {
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static lookupResult(int $a_course_obj_id, int $a_user_id, int $a_objective_id, int $a_tst_type)
 
static _lookupName(int $a_user_id)
lookup user name 
 
static _getObjectiveIds(int $course_id, bool $a_activated_only=false)
 
static getTestResultLinkForUser(int $a_test_ref_id, int $a_user_id)
 
createTestResultLink(int $a_type, int $a_objective_id)
 
__construct(object $a_parent_obj_gui, ilObject $a_parent_obj, string $a_parent_cmd)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
static lookupObjectiveTitle(int $a_objective_id, bool $a_add_description=false)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static getInstanceByObjId(int $a_obj_id)
 
ilObject $parent_container
 
static getInstance(int $a_container_id)
 
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)
 
const TYPE_TEST_QUALIFIED