ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestPersonalSkillsGUI Class Reference
+ Collaboration diagram for ilTestPersonalSkillsGUI:

Public Member Functions

 __construct (ilLanguage $lng, $testId)
 
 getHTML ()
 
 setAvailableSkills ($availableSkills)
 
 getAvailableSkills ()
 
 setSelectedSkillProfile ($selectedSkillProfile)
 
 getSelectedSkillProfile ()
 
 setReachedSkillLevels ($reachedSkillLevels)
 
 getReachedSkillLevels ()
 
 setUsrId ($usrId)
 
 getUsrId ()
 
 getTestId ()
 

Private Attributes

 $lng
 
 $availableSkills
 
 $selectedSkillProfile
 
 $reachedSkillLevels
 
 $usrId
 
 $testId
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestPersonalSkillsGUI::__construct ( ilLanguage  $lng,
  $testId 
)
Parameters
ilLanguage$lng
int$testId

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

References $lng, and $testId.

Member Function Documentation

◆ getAvailableSkills()

ilTestPersonalSkillsGUI::getAvailableSkills ( )

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

References $availableSkills.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilTestPersonalSkillsGUI::getHTML ( )

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

43 {
44 $gui = new ilPersonalSkillsGUI();
45
46 $gui->setGapAnalysisActualStatusModePerObject($this->getTestId(), $this->lng->txt('tst_test_result'));
47
48 $gui->setTriggerObjectsFilter(array($this->getTestId()));
49 $gui->setHistoryView(true); // NOT IMPLEMENTED YET
50
51 // this is not required, we have no self evals in the test context,
52 // getReachedSkillLevel is a "test evaluation"
53 //$gui->setGapAnalysisSelfEvalLevels($this->getReachedSkillLevels());
54
55 $gui->setProfileId($this->getSelectedSkillProfile());
56
57 $html = $gui->getGapAnalysisHTML($this->getUsrId(), $this->getAvailableSkills());
58
59 return $html;
60 }
Personal skills GUI class.
$html
Definition: example_001.php:87

References $html, getAvailableSkills(), getSelectedSkillProfile(), getTestId(), and getUsrId().

+ Here is the call graph for this function:

◆ getReachedSkillLevels()

ilTestPersonalSkillsGUI::getReachedSkillLevels ( )

◆ getSelectedSkillProfile()

ilTestPersonalSkillsGUI::getSelectedSkillProfile ( )

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

References $selectedSkillProfile.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getTestId()

ilTestPersonalSkillsGUI::getTestId ( )
Returns
int

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

106 {
107 return $this->testId;
108 }

References $testId.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getUsrId()

ilTestPersonalSkillsGUI::getUsrId ( )

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

References $usrId.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ setAvailableSkills()

ilTestPersonalSkillsGUI::setAvailableSkills (   $availableSkills)

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

63 {
64 $this->availableSkills = $availableSkills;
65 }

References $availableSkills.

◆ setReachedSkillLevels()

ilTestPersonalSkillsGUI::setReachedSkillLevels (   $reachedSkillLevels)

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

83 {
84 $this->reachedSkillLevels = $reachedSkillLevels;
85 }

References $reachedSkillLevels.

◆ setSelectedSkillProfile()

ilTestPersonalSkillsGUI::setSelectedSkillProfile (   $selectedSkillProfile)

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

73 {
74 $this->selectedSkillProfile = $selectedSkillProfile;
75 }

References $selectedSkillProfile.

◆ setUsrId()

ilTestPersonalSkillsGUI::setUsrId (   $usrId)

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

93 {
94 $this->usrId = $usrId;
95 }

References $usrId.

Field Documentation

◆ $availableSkills

ilTestPersonalSkillsGUI::$availableSkills
private

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

Referenced by getAvailableSkills(), and setAvailableSkills().

◆ $lng

ilTestPersonalSkillsGUI::$lng
private

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

Referenced by __construct().

◆ $reachedSkillLevels

ilTestPersonalSkillsGUI::$reachedSkillLevels
private

◆ $selectedSkillProfile

ilTestPersonalSkillsGUI::$selectedSkillProfile
private

◆ $testId

ilTestPersonalSkillsGUI::$testId
private

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

Referenced by __construct(), and getTestId().

◆ $usrId

ilTestPersonalSkillsGUI::$usrId
private

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

Referenced by getUsrId(), and setUsrId().


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