39 $DIC->language()->loadLanguageModule(
'mst');
40 $DIC->language()->loadLanguageModule(
'trac');
43 $DIC->ui()->mainTemplate()->loadStandardTemplate();
51 $next_class =
$DIC->ctrl()->getNextClass($this);
52 switch ($next_class) {
53 case "ilmstlistcoursesgui":
54 $list_gui = new \ilMStListCoursesGUI();
55 $DIC->ctrl()->forwardCommand($list_gui);
57 case strtolower(ilMStListCertificatesGUI::class):
59 $DIC->ctrl()->forwardCommand($list_gui);
61 case strtolower(ilMStListCompetencesGUI::class):
63 $DIC->ctrl()->forwardCommand($list_gui);
69 case strtolower(ilMStShowUserGUI::class):
71 $DIC->ctrl()->forwardCommand($user_gui);
73 case strtolower(ilEmployeeTalkMyStaffListGUI::class):
75 $DIC->ctrl()->forwardCommand($user_gui);
79 $DIC->ctrl()->forwardCommand($list_gui);
83 $DIC->ui()->mainTemplate()->printToStdout();
89 final public static function extendActionMenuWithUserActions(
91 string $return_url =
""
94 $ui_fac =
$DIC->ui()->factory();
97 $DIC->user()->getId(),
102 $action_collection = $user_action_collector->getActionsForTargetUser($usr_id);
104 if (count($action_collection->getActions()) > 0) {
105 foreach ($action_collection->getActions() as $action) {
109 switch ($action->getType()) {
111 $actions[] = $ui_fac->link()->standard(
113 $action->getHref() .
"&back_url=" . $return_url
120 if ($usr_id !=
$DIC->user()->getId()) {
138 $ui_fac =
$DIC->ui()->factory();
140 $action_data = $action->
getData();
141 $link = $ui_fac->link()->standard(
144 )->withAdditionalOnLoadCode(
function (
$id) use ($action_data) {
145 $r =
"var button = document.getElementById('$id');";
146 foreach ($action_data as $k => $v) {
147 $r .=
"button.setAttribute('data-" . $k .
"', '" . $v .
"');";
159 if (ilMyStaffAccess::getInstance()->hasCurrentUserAccessToLearningProgressInObject($my_staff_course->
getCrsRefId())) {
161 $lp_icon =
$DIC->ui()->factory()->symbol()->icon()
163 $lp_icons->getImagePathForStatus($my_staff_course->
getUsrLpStatus()),
167 return $DIC->ui()->renderer()->render($lp_icon) .
' '
176 if (ilMyStaffAccess::getInstance()->hasCurrentUserAccessToLearningProgressInObject($my_staff_course->
getCrsRefId())) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
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.