33 $this->
ctrl = $DIC->ctrl();
35 $this->
lng = $DIC->language();
36 $this->
tabs = $DIC->tabs();
37 $this->main_tpl =
$DIC->ui()->mainTemplate();
55 switch ($next_class) {
56 case "illearningprogressgui":
63 case 'illearninghistorygui':
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) {
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")
148 "txt" =>
$lng->
txt(
"learning_progress")
158 foreach ($links as $k => $v) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilAchievements $achievements
show()
Show (redirects to first active service)
setTabs(string $activate)
getGUIClasses()
Get GUI class.
ilGlobalTemplateInterface $main_tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SERV_LEARNING_PROGRESS
const SERV_LEARNING_HISTORY
Class ilCtrl provides processing control methods.
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc
getNextClass($a_gui_class=null)
@inheritDoc
getCmd(string $fallback_command=null)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
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.
const LP_CONTEXT_PERSONAL_DESKTOP
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.