ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 66 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->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 }
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 76 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 104 of file class.ilTestPersonalSkillsGUI.php.

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

References $testId.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getUsrId()

ilTestPersonalSkillsGUI::getUsrId ( )

Definition at line 96 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 61 of file class.ilTestPersonalSkillsGUI.php.

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

References $availableSkills.

◆ setReachedSkillLevels()

ilTestPersonalSkillsGUI::setReachedSkillLevels (   $reachedSkillLevels)

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

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

References $reachedSkillLevels.

◆ setSelectedSkillProfile()

ilTestPersonalSkillsGUI::setSelectedSkillProfile (   $selectedSkillProfile)

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

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

References $selectedSkillProfile.

◆ setUsrId()

ilTestPersonalSkillsGUI::setUsrId (   $usrId)

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

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

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: