33 $this->
ctrl = $DIC->ctrl();
35 $this->
lng = $DIC->language();
36 $this->
tabs = $DIC->tabs();
37 $this->main_tpl = $DIC->ui()->mainTemplate();
52 $cmd = $ctrl->
getCmd(
"show");
55 switch ($next_class) {
56 case "illearningprogressgui":
57 $main_tpl->
setTitle($lng->
txt(
"learning_progress"));
63 case 'illearninghistorygui':
64 $main_tpl->
setTitle($lng->
txt(
"lhist_learning_history"));
68 $this->main_tpl->printToStdout();
71 case 'ilpersonalskillsgui':
76 $this->main_tpl->printToStdout();
79 case 'ilbadgeprofilegui':
84 $this->main_tpl->printToStdout();
87 case 'ilusercertificategui':
92 $this->main_tpl->printToStdout();
96 if (in_array($cmd, array(
"show"))) {
99 $this->main_tpl->printToStdout();
107 protected function show(): void
112 $first_service = current($this->achievements->getActiveServices());
113 if ($first_service) {
114 $ctrl->
redirectByClass([
"ildashboardgui",
"ilachievementsgui", $gui_classes[$first_service]]);
118 protected function setTabs(
string $activate): void
123 foreach ($this->achievements->getActiveServices() as $s) {
124 $tabs->
addTab(
"achieve_" . $s, $links[$s][
"txt"], $links[$s][
"link"]);
142 "txt" => $lng->
txt(
"lhist_learning_history")
145 "txt" => $lng->
txt(
"skills")
148 "txt" => $lng->
txt(
"learning_progress")
151 "txt" => $lng->
txt(
'obj_bdga')
154 "txt" => $lng->
txt(
"obj_cert")
158 foreach ($links as $k => $v) {
159 $links[$k][
"link"] = $ctrl->
getLinkTargetByClass([
"ildashboardgui",
"ilachievementsgui", $gui_classes[$k]]);
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
show()
Show (redirects to first active service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
getCmd(string $fallback_command=null)
getGUIClasses()
Get GUI class.
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
loadLanguageModule(string $a_module)
Load language module.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
forwardCommand(object $a_gui_object)
Personal skills GUI class.
ilGlobalTemplateInterface $main_tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNextClass($a_gui_class=null)
setTabs(string $activate)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const LP_CONTEXT_PERSONAL_DESKTOP
const SERV_LEARNING_HISTORY
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
const SERV_LEARNING_PROGRESS
activateTab(string $a_id)
ilAchievements $achievements
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.