42 $this->usr_id = $DIC->http()->request()->getQueryParams()[
'usr_id'];
43 $DIC->ctrl()->setParameter($this,
'usr_id', $this->usr_id);
46 $DIC->ui()->mainTemplate()->setTitleIcon(ilObjUser::_getPersonalPicturePath($this->usr_id,
"xxsmall"));
59 $DIC->ctrl()->redirectByClass(ilPersonalDesktopGUI::class,
"");
62 if ($this->access->hasCurrentUserAccessToMyStaff()
63 && $this->access->hasCurrentUserAccessToUser($this->usr_id)) {
67 $DIC->ctrl()->redirectByClass(ilPersonalDesktopGUI::class,
"");
81 $cmd = $DIC->ctrl()->getCmd();
82 $next_class = $DIC->ctrl()->getNextClass();
84 switch ($next_class) {
85 case strtolower(ilFormPropertyDispatchGUI::class):
86 $DIC->ctrl()->setReturn($this, self::CMD_INDEX);
88 $this->table->executeCommand();
92 case self::CMD_RESET_FILTER:
93 case self::CMD_APPLY_FILTER:
95 $this->
addTabs(self::TAB_SHOW_COURSES);
98 case self::CMD_SHOWUSER:
99 $this->
addTabs(self::TAB_SHOW_USER);
103 $this->
addTabs(self::TAB_SHOW_COURSES);
130 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
143 if (!
$user->hasPublicProfile()) {
144 $DIC->ctrl()->redirectByClass(self::class, self::CMD_INDEX);
148 $DIC->ui()->mainTemplate()->setContent($pub_profile->getEmbeddable());
158 $this->table->writeFilterToSession();
159 $this->table->resetOffset();
170 $this->table->resetOffset();
171 $this->table->resetFilter();
183 return $this->table->getId();
194 $DIC->ctrl()->redirect($this);
205 $DIC->tabs()->setBackTarget($DIC->language()->txt(
'mst_list_users'), $DIC->ctrl()->getLinkTargetByClass(array(
207 ilMStListUsersGUI::class,
209 $DIC->tabs()->addTab(self::TAB_SHOW_COURSES, $DIC->language()->txt(
'mst_show_courses'), $DIC->ctrl()->getLinkTargetByClass(array(
212 ), self::CMD_INDEX));
215 if (
$user->hasPublicProfile()) {
216 $DIC->ctrl()->setParameterByClass(self::class,
'usr_id', $this->usr_id);
217 $public_profile_url = $DIC->ctrl()->getLinkTargetByClass(self::class, self::CMD_SHOWUSER);
218 $DIC->tabs()->addTab(self::TAB_SHOW_USER, $DIC->language()->txt(
'public_profile'), $public_profile_url);
221 if ($active_tab_id) {
222 $DIC->tabs()->activateTab($active_tab_id);
static _lookupTitle($a_id)
lookup object title
GUI class for public user profile presentation.
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilMStShowUserCoursesTableGUI.