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 ILIAS\Repository\event(), and ILIAS\Repository\lng().
Referenced by view().
137 $message = json_encode(
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()
◆ 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()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCardForUser(ilUsersGalleryUser $user, ilUsersGalleryUserCollection $group)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $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: