19declare(strict_types=1);
35 $this->
ctrl = $DIC->ctrl();
37 $this->
lng = $DIC->language();
38 $this->
tabs = $DIC->tabs();
39 $this->main_tpl =
$DIC->ui()->mainTemplate();
54 switch ($next_class) {
55 case strtolower(ilLearningHistoryGUI::class):
60 $this->main_tpl->printToStdout();
63 case strtolower(ilLPPersonalGUI::class):
70 $this->main_tpl->printToStdout();
73 case strtolower(ilPersonalSkillsGUI::class):
78 $this->main_tpl->printToStdout();
81 case strtolower(ilBadgeProfileGUI::class):
86 $this->main_tpl->printToStdout();
89 case strtolower(ilUserCertificateGUI::class):
94 $this->main_tpl->printToStdout();
101 $this->main_tpl->printToStdout();
106 protected function show(): void
111 $first_service = current($this->achievements->getActiveServices());
112 if ($first_service) {
113 $ctrl->
redirectByClass([ilDashboardGUI::class, ilAchievementsGUI::class, $gui_classes[$first_service]]);
117 protected function setTabs(
string $activate): void
122 foreach ($this->achievements->getActiveServices() as $s) {
123 $tabs->
addTab(
'achieve_' . $s, $links[$s][
'txt'], $links[$s][
'link']);
141 'txt' =>
$lng->
txt(
'lhist_learning_history')
147 'txt' =>
$lng->
txt(
'learning_progress')
157 foreach ($links as $k => $v) {
@ilCtrl_Calls ilAchievementsGUI: ilPersonalSkillsGUI, ilBadgeProfileGUI, ilLearningHistoryGUI,...
ilAchievements $achievements
setTabs(string $activate)
ilGlobalTemplateInterface $main_tpl
const SERV_LEARNING_PROGRESS
const SERV_LEARNING_HISTORY
Class ilCtrl provides processing control methods.
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
getNextClass($a_gui_class=null)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
@ilCtrl_IsCalledBy ilLPPersonalGUI: ilDashboardGUI
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Learning history main GUI class.
Personal skills GUI class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
Add a Tab.
activateTab(string $a_id)
@ilCtrl_IsCalledBy ilUserCertificateGUI: ilAchievementsGUI
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setDescription(string $a_descr)
Sets description below title in standard template.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon