ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTestPersonalSkillsGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
30  private $lng;
31 
33 
35 
37 
38  private $usrId;
39 
43  private $testId;
44 
49  public function __construct(ilLanguage $lng, $testId)
50  {
51  $this->lng = $lng;
52  $this->testId = $testId;
53  }
54 
55  public function getHTML(): string
56  {
57  $gui = new ilPersonalSkillsGUI();
58 
59  $gui->setGapAnalysisActualStatusModePerObject($this->getTestId(), $this->lng->txt('tst_test_result'));
60 
61  $gui->setTriggerObjectsFilter(array($this->getTestId()));
62  $gui->setHistoryView(true); // NOT IMPLEMENTED YET
63 
64  // this is not required, we have no self evals in the test context,
65  // getReachedSkillLevel is a "test evaluation"
66  //$gui->setGapAnalysisSelfEvalLevels($this->getReachedSkillLevels());
67 
68  $gui->setProfileId($this->getSelectedSkillProfile());
69 
70  $html = $gui->getGapAnalysisHTML((int) $this->getUsrId(), $this->getAvailableSkills());
71 
72  return $html;
73  }
74 
76  {
77  $this->availableSkills = $availableSkills;
78  }
79 
80  public function getAvailableSkills()
81  {
83  }
84 
86  {
87  $this->selectedSkillProfile = $selectedSkillProfile;
88  }
89 
90  public function getSelectedSkillProfile()
91  {
93  }
94 
96  {
97  $this->reachedSkillLevels = $reachedSkillLevels;
98  }
99 
100  public function getReachedSkillLevels()
101  {
103  }
104 
105  public function setUsrId($usrId)
106  {
107  $this->usrId = $usrId;
108  }
109 
110  public function getUsrId()
111  {
112  return $this->usrId;
113  }
114 
118  public function getTestId(): int
119  {
120  return $this->testId;
121  }
122 }
setSelectedSkillProfile($selectedSkillProfile)
setReachedSkillLevels($reachedSkillLevels)
Personal skills GUI class.
__construct(ilLanguage $lng, $testId)