ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 25 of file class.ilTestPersonalSkillsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References $lng, $testId, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailableSkills()

ilTestPersonalSkillsGUI::getAvailableSkills ( )

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

References $availableSkills.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilTestPersonalSkillsGUI::getHTML ( )

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

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

55  : string
56  {
57  $gui = new ilPersonalSkillsGUI();
58 
59  $gui->setGapAnalysisActualStatusModePerObject($this->getTestId(), $this->lng->txt('tst_test_result'));
60 
61  $gui->setTriggerObjectsFilter(array($this->getTestId()));
62  $gui->setHistoryView(true); // NOT IMPLEMENTED YET
63 
64  // this is not required, we have no self evals in the test context,
65  // getReachedSkillLevel is a "test evaluation"
66  //$gui->setGapAnalysisSelfEvalLevels($this->getReachedSkillLevels());
67 
68  $gui->setProfileId($this->getSelectedSkillProfile());
69 
70  $html = $gui->getGapAnalysisHTML((int) $this->getUsrId(), $this->getAvailableSkills());
71 
72  return $html;
73  }
Personal skills GUI class.
+ Here is the call graph for this function:

◆ getReachedSkillLevels()

ilTestPersonalSkillsGUI::getReachedSkillLevels ( )

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

References $reachedSkillLevels.

◆ getSelectedSkillProfile()

ilTestPersonalSkillsGUI::getSelectedSkillProfile ( )

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

References $testId.

Referenced by getHTML().

118  : int
119  {
120  return $this->testId;
121  }
+ Here is the caller graph for this function:

◆ getUsrId()

ilTestPersonalSkillsGUI::getUsrId ( )

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

References $availableSkills.

Referenced by ilTestSkillEvaluationGUI\buildPersonalSkillsGUI().

76  {
77  $this->availableSkills = $availableSkills;
78  }
+ Here is the caller graph for this function:

◆ setReachedSkillLevels()

ilTestPersonalSkillsGUI::setReachedSkillLevels (   $reachedSkillLevels)

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

References $reachedSkillLevels.

96  {
97  $this->reachedSkillLevels = $reachedSkillLevels;
98  }

◆ setSelectedSkillProfile()

ilTestPersonalSkillsGUI::setSelectedSkillProfile (   $selectedSkillProfile)

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

References $selectedSkillProfile.

86  {
87  $this->selectedSkillProfile = $selectedSkillProfile;
88  }

◆ setUsrId()

ilTestPersonalSkillsGUI::setUsrId (   $usrId)

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

References $usrId.

106  {
107  $this->usrId = $usrId;
108  }

Field Documentation

◆ $availableSkills

ilTestPersonalSkillsGUI::$availableSkills
private

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

Referenced by getAvailableSkills(), and setAvailableSkills().

◆ $lng

ilTestPersonalSkillsGUI::$lng
private

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

Referenced by __construct().

◆ $reachedSkillLevels

ilTestPersonalSkillsGUI::$reachedSkillLevels
private

◆ $selectedSkillProfile

ilTestPersonalSkillsGUI::$selectedSkillProfile
private

◆ $testId

ilTestPersonalSkillsGUI::$testId
private

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

Referenced by __construct(), and getTestId().

◆ $usrId

ilTestPersonalSkillsGUI::$usrId
private

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

Referenced by getUsrId(), and setUsrId().


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