Class ilMStShowUserCompetencesGUI.
More...
◆ __construct()
ilMStShowUserCompetencesGUI::__construct |
( |
Container |
$dic | ) |
|
Definition at line 39 of file class.ilMStShowUserCompetencesGUI.php.
References $DIC, $dic, and ILIAS\Repository\access().
42 $this->main_tpl = $DIC->ui()->mainTemplate();
44 $this->
access = ilMyStaffAccess::getInstance();
45 $this->skill_personal_service = $DIC->skills()->personal();
47 $this->usr_id = $this->dic->http()->request()->getQueryParams()[
'usr_id'];
48 $this->dic->ctrl()->setParameter($this,
'usr_id', $this->usr_id);
◆ addSubTabs()
ilMStShowUserCompetencesGUI::addSubTabs |
( |
string |
$active_sub_tab | ) |
|
|
protected |
Definition at line 88 of file class.ilMStShowUserCompetencesGUI.php.
Referenced by executeCommand().
90 $this->dic->language()->loadLanguageModule(
'skmg');
91 $this->dic->tabs()->addSubTab(
93 $this->dic->language()->txt(
'skmg_selected_skills'),
94 $this->dic->ctrl()->getLinkTarget($this, self::CMD_SHOW_SKILLS)
97 $this->dic->tabs()->activateSubTab($active_sub_tab);
◆ checkAccessOrFail()
ilMStShowUserCompetencesGUI::checkAccessOrFail |
( |
| ) |
|
|
protected |
Definition at line 51 of file class.ilMStShowUserCompetencesGUI.php.
References ILIAS\Repository\access().
Referenced by executeCommand().
54 $this->main_tpl->setOnScreenMessage(
'failure', $this->dic->language()->txt(
"permission_denied"),
true);
55 $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
58 if ($this->
access->hasCurrentUserAccessToUser($this->usr_id)
59 && $this->
access->hasCurrentUserAccessToCompetences()
63 $this->main_tpl->setOnScreenMessage(
'failure', $this->dic->language()->txt(
"permission_denied"),
true);
64 $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
◆ executeCommand()
ilMStShowUserCompetencesGUI::executeCommand |
( |
| ) |
|
|
final |
◆ showSkills()
ilMStShowUserCompetencesGUI::showSkills |
( |
| ) |
|
|
protected |
Definition at line 100 of file class.ilMStShowUserCompetencesGUI.php.
References $usr_id.
Referenced by executeCommand().
103 $skills = $this->skill_personal_service->getSelectedUserSkills($this->usr_id);
105 foreach ($skills as $skill) {
106 $html .= $skills_gui->getSkillHTML($skill->getSkillNodeId(),
$this->usr_id);
108 $this->dic->ui()->mainTemplate()->setContent($html);
Personal skills GUI class.
◆ $access
◆ $dic
◆ $main_tpl
◆ $skill_personal_service
ILIAS Skill Service SkillPersonalService ilMStShowUserCompetencesGUI::$skill_personal_service |
|
protected |
◆ $table
◆ $usr_id
int ilMStShowUserCompetencesGUI::$usr_id |
|
private |
◆ CMD_INDEX
const string ilMStShowUserCompetencesGUI::CMD_INDEX = self::CMD_SHOW_SKILLS |
◆ CMD_SHOW_SKILLS
const string ilMStShowUserCompetencesGUI::CMD_SHOW_SKILLS = 'showSkills' |
◆ SUB_TAB_SKILLS
const string ilMStShowUserCompetencesGUI::SUB_TAB_SKILLS = 'skills' |
The documentation for this class was generated from the following file: