ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilTestPersonalSkillsGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Skill/classes/class.ilPersonalSkillsGUI.php';
5 
13 {
17  private $lng;
18 
20 
22 
24 
25  private $usrId;
26 
30  private $testId;
31 
36  public function __construct(ilLanguage $lng, $testId)
37  {
38  $this->lng = $lng;
39  $this->testId = $testId;
40  }
41 
42  public function getHTML()
43  {
44  $gui = new ilPersonalSkillsGUI();
45 
46  $gui->setGapAnalysisActualStatusModePerObject($this->getTestId(), $this->lng->txt('tst_test_result'));
47 
48  $gui->setHistoryView(true); // NOT IMPLEMENTED YET
49 
50  // this is not required, we have no self evals in the test context,
51  // getReachedSkillLevel is a "test evaluation"
52  //$gui->setGapAnalysisSelfEvalLevels($this->getReachedSkillLevels());
53 
54  $gui->setProfileId($this->getSelectedSkillProfile());
55 
56  $html = $gui->getGapAnalysisHTML($this->getUsrId(), $this->getAvailableSkills());
57 
58  return $html;
59  }
60 
62  {
63  $this->availableSkills = $availableSkills;
64  }
65 
66  public function getAvailableSkills()
67  {
69  }
70 
72  {
73  $this->selectedSkillProfile = $selectedSkillProfile;
74  }
75 
76  public function getSelectedSkillProfile()
77  {
79  }
80 
82  {
83  $this->reachedSkillLevels = $reachedSkillLevels;
84  }
85 
86  public function getReachedSkillLevels()
87  {
89  }
90 
91  public function setUsrId($usrId)
92  {
93  $this->usrId = $usrId;
94  }
95 
96  public function getUsrId()
97  {
98  return $this->usrId;
99  }
100 
104  public function getTestId()
105  {
106  return $this->testId;
107  }
108 
109 }
setSelectedSkillProfile($selectedSkillProfile)
setReachedSkillLevels($reachedSkillLevels)
Personal skills GUI class.
language handling
__construct(ilLanguage $lng, $testId)
$html
Definition: example_001.php:87