ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestPersonalSkillsGUI Class Reference
+ Collaboration diagram for ilTestPersonalSkillsGUI:

Public Member Functions

 __construct (private ilLanguage $lng, private int $test_id)
 
 getHTML ()
 
 setAvailableSkills (array $availableSkills)
 
 getAvailableSkills ()
 
 setSelectedSkillProfile (int $selectedSkillProfile)
 
 getSelectedSkillProfile ()
 
 setReachedSkillLevels (array $reachedSkillLevels)
 
 getReachedSkillLevels ()
 
 setUsrId (int $usr_id)
 
 getUsrId ()
 
 getTestId ()
 

Private Attributes

array $availableSkills
 
int $selectedSkillProfile
 
array $reachedSkillLevels
 
int $usr_id
 

Detailed Description

Definition at line 27 of file class.ilTestPersonalSkillsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestPersonalSkillsGUI::__construct ( private ilLanguage  $lng,
private int  $test_id 
)

Definition at line 34 of file class.ilTestPersonalSkillsGUI.php.

37  {
38  }

Member Function Documentation

◆ getAvailableSkills()

ilTestPersonalSkillsGUI::getAvailableSkills ( )

Definition at line 59 of file class.ilTestPersonalSkillsGUI.php.

References $availableSkills.

Referenced by getHTML().

59  : array
60  {
62  }
+ Here is the caller graph for this function:

◆ getHTML()

ilTestPersonalSkillsGUI::getHTML ( )

Definition at line 40 of file class.ilTestPersonalSkillsGUI.php.

References getAvailableSkills(), getSelectedSkillProfile(), getTestId(), getUsrId(), and ILIAS\Repository\lng().

40  : 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  }
Personal skills GUI class.
+ Here is the call graph for this function:

◆ getReachedSkillLevels()

ilTestPersonalSkillsGUI::getReachedSkillLevels ( )

Definition at line 79 of file class.ilTestPersonalSkillsGUI.php.

References $reachedSkillLevels.

◆ getSelectedSkillProfile()

ilTestPersonalSkillsGUI::getSelectedSkillProfile ( )

Definition at line 69 of file class.ilTestPersonalSkillsGUI.php.

References $selectedSkillProfile.

Referenced by getHTML().

69  : int
70  {
72  }
+ Here is the caller graph for this function:

◆ getTestId()

ilTestPersonalSkillsGUI::getTestId ( )
Returns
int

Definition at line 97 of file class.ilTestPersonalSkillsGUI.php.

Referenced by getHTML().

97  : int
98  {
99  return $this->test_id;
100  }
+ Here is the caller graph for this function:

◆ getUsrId()

ilTestPersonalSkillsGUI::getUsrId ( )

Definition at line 89 of file class.ilTestPersonalSkillsGUI.php.

References $usr_id.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ setAvailableSkills()

ilTestPersonalSkillsGUI::setAvailableSkills ( array  $availableSkills)

Definition at line 54 of file class.ilTestPersonalSkillsGUI.php.

References $availableSkills.

Referenced by ilTestSkillEvaluationGUI\buildPersonalSkillsGUI().

54  : void
55  {
56  $this->availableSkills = $availableSkills;
57  }
+ Here is the caller graph for this function:

◆ setReachedSkillLevels()

ilTestPersonalSkillsGUI::setReachedSkillLevels ( array  $reachedSkillLevels)

Definition at line 74 of file class.ilTestPersonalSkillsGUI.php.

References $reachedSkillLevels.

74  : void
75  {
76  $this->reachedSkillLevels = $reachedSkillLevels;
77  }

◆ setSelectedSkillProfile()

ilTestPersonalSkillsGUI::setSelectedSkillProfile ( int  $selectedSkillProfile)

Definition at line 64 of file class.ilTestPersonalSkillsGUI.php.

References $selectedSkillProfile.

64  : void
65  {
66  $this->selectedSkillProfile = $selectedSkillProfile;
67  }

◆ setUsrId()

ilTestPersonalSkillsGUI::setUsrId ( int  $usr_id)

Definition at line 84 of file class.ilTestPersonalSkillsGUI.php.

References $usr_id.

84  : void
85  {
86  $this->usr_id = $usr_id;
87  }

Field Documentation

◆ $availableSkills

array ilTestPersonalSkillsGUI::$availableSkills
private

Definition at line 29 of file class.ilTestPersonalSkillsGUI.php.

Referenced by getAvailableSkills(), and setAvailableSkills().

◆ $reachedSkillLevels

array ilTestPersonalSkillsGUI::$reachedSkillLevels
private

◆ $selectedSkillProfile

int ilTestPersonalSkillsGUI::$selectedSkillProfile
private

◆ $usr_id

int ilTestPersonalSkillsGUI::$usr_id
private

Definition at line 32 of file class.ilTestPersonalSkillsGUI.php.

Referenced by getUsrId(), and setUsrId().


The documentation for this class was generated from the following file: