ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilTestPersonalSkillsGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 {
29  private array $availableSkills;
30  private int $selectedSkillProfile;
31  private array$reachedSkillLevels;
32  private int $usr_id;
33 
34  public function __construct(
35  private ilLanguage $lng,
36  private int $test_id
37  ) {
38  }
39 
40  public function getHTML(): string
41  {
42  $gui = new ilPersonalSkillsGUI();
43 
44  $gui->setGapAnalysisActualStatusModePerObject($this->getTestId(), $this->lng->txt('tst_test_result'));
45  $gui->setTriggerObjectsFilter(array($this->getTestId()));
46  $gui->setHistoryView(true); // NOT IMPLEMENTED YET
47  $gui->setProfileId($this->getSelectedSkillProfile());
48 
49  $html = $gui->getGapAnalysisHTML($this->getUsrId(), $this->getAvailableSkills());
50 
51  return $html;
52  }
53 
54  public function setAvailableSkills(array $availableSkills): void
55  {
56  $this->availableSkills = $availableSkills;
57  }
58 
59  public function getAvailableSkills(): array
60  {
62  }
63 
64  public function setSelectedSkillProfile(int $selectedSkillProfile): void
65  {
66  $this->selectedSkillProfile = $selectedSkillProfile;
67  }
68 
69  public function getSelectedSkillProfile(): int
70  {
72  }
73 
74  public function setReachedSkillLevels(array $reachedSkillLevels): void
75  {
76  $this->reachedSkillLevels = $reachedSkillLevels;
77  }
78 
79  public function getReachedSkillLevels()
80  {
82  }
83 
84  public function setUsrId(int $usr_id): void
85  {
86  $this->usr_id = $usr_id;
87  }
88 
89  public function getUsrId()
90  {
91  return $this->usr_id;
92  }
93 
97  public function getTestId(): int
98  {
99  return $this->test_id;
100  }
101 }
setReachedSkillLevels(array $reachedSkillLevels)
Personal skills GUI class.
$lng
__construct(private ilLanguage $lng, private int $test_id)
setAvailableSkills(array $availableSkills)
setSelectedSkillProfile(int $selectedSkillProfile)