41 $this->ctrl = $DIC->ctrl();
43 $this->lng = $DIC->language();
44 $this->tabs = $DIC->tabs();
45 $this->main_tpl = $DIC->ui()->mainTemplate();
55 $main_tpl = $this->main_tpl;
58 $next_class =
$ctrl->getNextClass($this);
59 $cmd =
$ctrl->getCmd(
"show");
61 $main_tpl->setTitle(
$lng->txt(
"pd_achievements"));
64 switch ($next_class) {
65 case "illearningprogressgui":
67 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
69 $ctrl->forwardCommand($new_gui);
72 case 'illearninghistorygui':
75 $ctrl->forwardCommand($lhistgui);
76 $this->main_tpl->show();
79 case 'ilpersonalskillsgui':
81 include_once
'./Services/Skill/classes/class.ilPersonalSkillsGUI.php';
83 $ctrl->forwardCommand($skgui);
84 $this->main_tpl->show();
87 case 'ilbadgeprofilegui':
89 include_once
'./Services/Badge/classes/class.ilBadgeProfileGUI.php';
91 $ctrl->forwardCommand($bgui);
92 $this->main_tpl->show();
95 case 'ilusercertificategui':
98 $ctrl->forwardCommand($cgui);
99 $this->main_tpl->show();
103 if (in_array($cmd, array(
"show"))) {
106 $this->main_tpl->show();
119 $first_service = current($this->achievements->getActiveServices());
120 if ($first_service) {
121 $ctrl->redirectByClass([
"ilpersonaldesktopgui",
"ilachievementsgui", $gui_classes[$first_service]]);
133 foreach ($this->achievements->getActiveServices() as
$s) {
136 $tabs->activateTab(
"achieve_" . $activate);
150 $lng->loadLanguageModule(
"lhist");
155 "txt" =>
$lng->txt(
"lhist_learning_history")
158 "txt" =>
$lng->txt(
"skills")
161 "txt" =>
$lng->txt(
"learning_progress")
164 "txt" =>
$lng->txt(
'obj_bdga')
167 "txt" =>
$lng->txt(
"obj_cert")
171 foreach (
$links as $k => $v) {
172 $links[$k][
"link"] =
$ctrl->getLinkTargetByClass([
"ilpersonaldesktopgui",
"ilachievementsgui", $gui_classes[$k]]);
show()
Show (redirects to first active service)
getGUIClasses()
Get GUI class.
Learning history main GUI class.
executeCommand()
Execute command.
Personal skills GUI class.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
__construct()
Constructor.
Maybe a separate service in the future.
setTabs($activate)
Set tabs.
const LP_CONTEXT_PERSONAL_DESKTOP
const SERV_LEARNING_HISTORY
const SERV_LEARNING_PROGRESS
Class ilObjUserTrackingGUI.