22 $DIC->language()->loadLanguageModule(
'mst');
23 $DIC->language()->loadLanguageModule(
'trac');
26 $DIC->ui()->mainTemplate()->getStandardTemplate();
27 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt(
'mst_my_staff'));
39 $next_class = $DIC->ctrl()->getNextClass($this);
41 switch ($next_class) {
42 case strtolower(ilMStListCoursesGUI::class):
43 $this->
addTabs(self::TAB_LIST_COURSES);
45 $DIC->ctrl()->forwardCommand($list_course_gui);
47 case strtolower(ilMStShowUserGUI::class):
49 $DIC->ctrl()->forwardCommand($list_course_gui);
52 $this->
addTabs(self::TAB_LIST_USERS);
54 $DIC->ctrl()->forwardCommand($list_user_gui);
58 $DIC->ui()->mainTemplate()->show();
65 protected function addTabs($active_tab_id)
69 $DIC->tabs()->addTab(self::TAB_LIST_USERS, $DIC->language()->txt(
'mst_list_users'), $DIC->ctrl()->getLinkTargetByClass(array(
71 ilMStListUsersGUI::class,
73 $DIC->tabs()->addTab(self::TAB_LIST_COURSES, $DIC->language()->txt(
'mst_list_courses'), $DIC->ctrl()->getLinkTargetByClass(array(
75 ilMStListCoursesGUI::class,
79 $DIC->tabs()->activateTab($active_tab_id);
96 $action_collection = $user_action_collector->getActionsForTargetUser($usr_id);
97 if (count($action_collection->getActions()) > 0) {
98 foreach ($action_collection->getActions() as
$action) {
110 if ($usr_id != $DIC->user()->getId()) {
111 $selection->
addItem(
$action->getText(),
"",
$action->getHref(),
"",
"",
"",
"",
false,
"",
"",
"",
"",
true,
$action->getData());
115 $selection->
addItem(
$action->getText(),
"",
$action->getHref(),
"",
"",
"",
"",
false,
"",
"",
"",
"",
true,
$action->getData());
135 $lp_icon = $DIC->ui()->factory()->image()
138 return $DIC->ui()->renderer()->render($lp_icon) .
' '
static _getImagePathForStatus($a_status)
Get image path for status.
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
static getInstance($a_user_id, ilUserActionContext $a_context)
Get instance (for a user)
static getUserLpStatusAsHtml(ilMStListCourse $my_staff_course)
addItem( $a_title, $a_value="", $a_link="", $a_img="", $a_alt="", $a_frame="", $a_html="", $a_prevent_background_click=false, $a_onclick="", $a_ttip="", $a_tt_my="right center", $a_tt_at="left center", $a_tt_use_htmlspecialchars=true, $a_data=array())
Add an item.
static getUserLpStatusAsText(ilMStListCourse $my_staff_course)
Class ilMStListCoursesGUI.
Awareness context for user actions.
User interface class for advanced drop-down selection lists.