40 $DIC->language()->loadLanguageModule(
'mst');
41 $DIC->language()->loadLanguageModule(
'trac');
44 $DIC->ui()->mainTemplate()->loadStandardTemplate();
52 $next_class =
$DIC->ctrl()->getNextClass($this);
53 switch ($next_class) {
54 case "ilmstlistcoursesgui":
55 $list_gui = new \ilMStListCoursesGUI();
56 $DIC->ctrl()->forwardCommand($list_gui);
58 case strtolower(ilMStListCertificatesGUI::class):
60 $DIC->ctrl()->forwardCommand($list_gui);
62 case strtolower(ilMStListCompetencesGUI::class):
64 $DIC->ctrl()->forwardCommand($list_gui);
70 case strtolower(ilMStShowUserGUI::class):
72 $DIC->ctrl()->forwardCommand($user_gui);
74 case strtolower(ilEmployeeTalkMyStaffListGUI::class):
76 $DIC->ctrl()->forwardCommand($user_gui);
80 $DIC->ctrl()->forwardCommand($list_gui);
84 $DIC->ui()->mainTemplate()->printToStdout();
90 final public static function extendActionMenuWithUserActions(
92 string $return_url =
""
95 $ui_fac =
$DIC->ui()->factory();
98 $DIC->user()->getId(),
103 $action_collection = $user_action_collector->getActionsForTargetUser($usr_id);
105 if (count($action_collection->getActions()) > 0) {
106 foreach ($action_collection->getActions() as $action) {
110 switch ($action->getType()) {
116 if ($usr_id !=
$DIC->user()->getId()) {
134 $ui_fac =
$DIC->ui()->factory();
136 $action_data = $action->
getData();
137 $link = $ui_fac->link()->standard(
140 )->withAdditionalOnLoadCode(
function (
$id) use ($action_data) {
141 $r =
"var button = document.getElementById('$id');";
142 foreach ($action_data as $k => $v) {
143 $r .=
"button.setAttribute('data-" . $k .
"', '" . $v .
"');";
155 if (ilMyStaffAccess::getInstance()->hasCurrentUserAccessToLearningProgressInObject($my_staff_course->
getCrsRefId())) {
157 $lp_icon =
$DIC->ui()->factory()->symbol()->icon()
159 $lp_icons->getImagePathForStatus($my_staff_course->
getUsrLpStatus()),
163 return $DIC->ui()->renderer()->render($lp_icon) .
' '
172 if (ilMyStaffAccess::getInstance()->hasCurrentUserAccessToLearningProgressInObject($my_staff_course->
getCrsRefId())) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
GUI class for public user profile presentation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
@ilCtrl_IsCalledBy ilEmployeeTalkMyStaffListGUI: ilMyStaffGUI @ilCtrl_IsCalledBy ilEmployeeTalkMyStaf...
static getInstance(int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null)
static _getStatusText(int $a_status, ?ilLanguage $a_lng=null)
Get status alt text.
Class ilMStListCertificatesGUI.
Class ilMStListCompetencesGUI.
static getUserLpStatusAsText(ilMStListCourse $my_staff_course)
const string TAB_LIST_USERS
const string TAB_LIST_COMPETENCES
const string TAB_LIST_STUDY_PROGRAMME
static addLinkWithActionData(ilUserAction $action)
const string TAB_LIST_COURSES
const string TAB_LIST_CERTIFICATES
static getUserLpStatusAsHtml(ilMStListCourse $my_staff_course)
User action administration.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.