ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSurveySkillDeterminationGUI.php
Go to the documentation of this file.
1<?php
2
25{
28 protected ilCtrl $ctrl;
30 protected ilLanguage $lng;
31
32 public function __construct(ilObjSurvey $a_survey)
33 {
34 global $DIC;
35
36 $this->ctrl = $DIC->ctrl();
37 $this->tpl = $DIC->ui()->mainTemplate();
38 $this->toolbar = $DIC->toolbar();
39 $this->lng = $DIC->language();
40 $this->survey = $a_survey;
41 }
42
43 public function executeCommand(): void
44 {
45 $ilCtrl = $this->ctrl;
46
47 $cmd = $ilCtrl->getCmd("listSkillChanges");
48
49 if ($cmd === "listSkillChanges") {
50 $this->$cmd();
51 }
52 }
53
54 public function listSkillChanges(): void
55 {
57
58 if ($this->survey->get360Mode()) {
59 $apps = $this->survey->getAppraiseesData();
60 } else { // Mode self evaluation, No Appraisee and Rater involved.
61 $apps = $this->survey->getSurveyParticipants();
62 }
63 $ctpl = new ilTemplate("tpl.svy_skill_list_changes.html", true, true, "components/ILIAS/Survey");
64 foreach ($apps as $app) {
65 $changes_table = new ilSurveySkillChangesTableGUI(
66 $this,
67 "listSkillChanges",
68 $this->survey,
69 $app
70 );
71
72 $ctpl->setCurrentBlock("appraisee");
73 $ctpl->setVariable("LASTNAME", $app["lastname"]);
74 $ctpl->setVariable("FIRSTNAME", $app["firstname"]);
75
76 $ctpl->setVariable("CHANGES_TABLE", $changes_table->getHTML());
77
78 $ctpl->parseCurrentBlock();
79 }
80
81 $tpl->setContent($ctpl->get());
82 }
83}
Class ilCtrl provides processing control methods.
getCmd(?string $fallback_command=null)
@inheritDoc
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
special template class to simplify handling of ITX/PEAR
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContent(string $a_html)
Sets content for standard template.
global $DIC
Definition: shib_login.php:26