ilUsersGalleryGUI: ilPublicUserProfileGUI ilUsersGalleryGUI: ilCourseMembershipGUI, ilGroupMembershipGUI
More...
◆ addPublicProfileLinksToAvatarAndCard()
ilUsersGalleryGUI::addPublicProfileLinksToAvatarAndCard |
( |
Image |
$avatar, |
|
|
StandardCard |
$card, |
|
|
int |
$user_id |
|
) |
| |
|
protected |
Definition at line 227 of file class.ilUsersGalleryGUI.php.
References ILIAS\Repository\ctrl().
Referenced by getCardForUser().
232 $this->
ctrl->setParameterByClass(
233 ilPublicUserProfileGUI::class,
237 $public_profile_url = $this->
ctrl->getLinkTargetByClass(
238 ilPublicUserProfileGUI::class,
243 $avatar->withAction($public_profile_url),
244 $card->withTitleAction($public_profile_url)
◆ addUserRemovalJsForUserContacts()
ilUsersGalleryGUI::addUserRemovalJsForUserContacts |
( |
| ) |
|
|
protected |
Definition at line 135 of file class.ilUsersGalleryGUI.php.
References $message, ILIAS\Repository\event(), and ILIAS\Repository\lng().
Referenced by view().
138 $this->ui_renderer->render(
139 $this->ui_factory->messageBox()->info(
140 $this->
lng->txt(
'no_gallery_users_available')
146 let stateChangedListener = (
event) => {
147 const {buddyId, newState, oldState} =
event.detail;
149 if (newState ===
'ilBuddySystemUnlinkedRelationState') {
150 document.querySelector(
'.il-deck [data-buddy-id="' + buddyId +
'"]').closest(
'.il-card').parentElement.remove();
151 if (document.querySelectorAll(
'.il-card.thumbnail').length === 0) {
152 document.querySelector(
'.il-deck').innerHTML = {
$message};
158 document.addEventListener(
'il.bs.stateChange.afterStateChangePerformed', stateChangedListener);
160 $this->tpl->addOnLoadCode($onload_js);
◆ executeCommand()
ilUsersGalleryGUI::executeCommand |
( |
| ) |
|
◆ getActionsSection()
ilUsersGalleryGUI::getActionsSection |
( |
ilObjUser |
$user | ) |
|
|
protected |
◆ getCardForUser()
Definition at line 163 of file class.ilUsersGalleryGUI.php.
References addPublicProfileLinksToAvatarAndCard(), getActionsSection(), ilUsersGalleryUser\getAggregatedUser(), ilUsersGalleryUserCollection\getLabel(), ilUsersGalleryUser\getPublicName(), ilUsersGalleryUser\hasPublicProfile(), ilUsersGalleryUserCollection\isHighlighted(), ILIAS\Repository\lng(), and null.
Referenced by view().
167 $card = $this->ui_factory->card()->standard($user->
getPublicName())
169 $avatar = $this->ui_factory->image()->standard(
176 $sections[] = $this->ui_factory->listing()->descriptive(
179 $this->
lng->txt(
"crs_contact_responsibility") => $group->
getLabel()
184 if ($actions_section !==
null) {
185 $sections[] = $actions_section;
196 return $card->withImage($avatar)->withSections($sections);
addPublicProfileLinksToAvatarAndCard(Image $avatar, StandardCard $card, int $user_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getActionsSection(ilObjUser $user)
◆ view()
ilUsersGalleryGUI::view |
( |
| ) |
|
|
protected |
Definition at line 103 of file class.ilUsersGalleryGUI.php.
References addUserRemovalJsForUserContacts(), getCardForUser(), and ILIAS\Repository\lng().
105 $gallery_groups = $this->collection_provider->getGroupedCollections();
106 $groups_with_users = array_filter(
111 if (count($groups_with_users) === 0) {
112 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'no_gallery_users_available'));
118 foreach ($gallery_groups as $group) {
121 foreach ($sorted_group as
$user) {
126 if ($this->collection_provider->hasRemovableUsers()) {
130 $this->tpl->setContent(
131 $this->ui_renderer->render($this->ui_factory->deck($cards))
addUserRemovalJsForUserContacts()
getCardForUser(ilUsersGalleryUser $user, ilUsersGalleryUserCollection $group)
◆ $ctrl
ilCtrl ilUsersGalleryGUI::$ctrl |
|
private |
◆ $http
◆ $lng
◆ $rbacsystem
◆ $refinery
Refinery ilUsersGalleryGUI::$refinery |
|
private |
◆ $tpl
◆ $ui_factory
UIFactory ilUsersGalleryGUI::$ui_factory |
|
private |
◆ $ui_renderer
Renderer ilUsersGalleryGUI::$ui_renderer |
|
private |
◆ $user
◆ $user_action_gui
The documentation for this class was generated from the following file: