30 public const string CMD_INDEX = self::CMD_SHOW_SKILLS;
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);
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,
"");
72 $cmd = $this->dic->ctrl()->getCmd();
73 $next_class = $this->dic->ctrl()->getNextClass();
75 switch ($next_class) {
79 case self::CMD_SHOW_SKILLS:
88 protected function addSubTabs(
string $active_sub_tab): void
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);
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);
addSubTabs(string $active_sub_tab)
const string SUB_TAB_SKILLS
const string CMD_SHOW_SKILLS
ilGlobalTemplateInterface $main_tpl
__construct(Container $dic)
Customizing of pimple-DIC for ILIAS.
Personal skills GUI class.
ILIAS Skill Service SkillPersonalService $skill_personal_service
Class ilMStShowUserCompetencesGUI.