ilUsersGalleryGUI: ilPublicUserProfileGUI ilUsersGalleryGUI: ilCourseMembershipGUI, ilGroupMembershipGUI
More...
◆ addPublicProfileLinksToAvatarAndCard()
| ilUsersGalleryGUI::addPublicProfileLinksToAvatarAndCard |
( |
Image |
$avatar, |
|
|
StandardCard |
$card, |
|
|
int |
$user_id |
|
) |
| |
|
protected |
Definition at line 211 of file class.ilUsersGalleryGUI.php.
References ILIAS\Repository\ctrl().
Referenced by getCardForUser().
216 $this->
ctrl->setParameterByClass(
217 ilPublicUserProfileGUI::class,
221 $public_profile_url = $this->
ctrl->getLinkTargetByClass(
222 ilPublicUserProfileGUI::class,
227 $avatar->withAction($public_profile_url),
228 $card->withTitleAction($public_profile_url)
◆ executeCommand()
| ilUsersGalleryGUI::executeCommand |
( |
| ) |
|
◆ getActionsSection()
| ilUsersGalleryGUI::getActionsSection |
( |
ilObjUser |
$user | ) |
|
|
protected |
◆ getCardForUser()
◆ populateTemplate()
| ilUsersGalleryGUI::populateTemplate |
( |
array |
$gallery_groups | ) |
|
|
protected |
- Parameters
-
| array<ilUsersGalleryUserCollection> | $gallery_groups |
Definition at line 110 of file class.ilUsersGalleryGUI.php.
References $tpl, getCardForUser(), ilPanelGUI\getInstance(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setVariable(), and ilGlobalTemplateInterface\touchBlock().
Referenced by view().
112 $tpl =
new ilTemplate(
'tpl.users_gallery.html',
true,
true,
'Services/User');
115 $panel->setBody($this->
lng->txt(
'no_gallery_users_available'));
116 $tpl->
setVariable(
'NO_ENTRIES_HTML', json_encode($panel->getHTML(), JSON_THROW_ON_ERROR));
118 $groups_with_users = array_filter(
123 if (count($groups_with_users) === 0) {
130 foreach ($gallery_groups as $group) {
133 foreach ($sorted_group as
$user) {
138 $tpl->
setVariable(
'GALLERY_HTML', $this->ui_renderer->render($this->ui_factory->deck($cards)));
140 if ($this->collection_provider->hasRemovableUsers()) {
touchBlock(string $block)
overwrites ITX::touchBlock.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
getCardForUser(ilUsersGalleryUser $user, ilUsersGalleryUserCollection $group)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ view()
| ilUsersGalleryGUI::view |
( |
| ) |
|
|
protected |
◆ $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: