ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilUsersGalleryGUI Class Reference

@ilCtrl_Calls ilUsersGalleryGUI: ilPublicUserProfileGUI @ilCtrl_isCalledBy ilUsersGalleryGUI: ilObjCourseGUI, ilObjGroupGUI More...

+ Collaboration diagram for ilUsersGalleryGUI:

Public Member Functions

 executeCommand ()
 

Protected Member Functions

 view ()
 Displays the participants gallery. More...
 
 renderLinkButton (ilTemplate $tpl, ilObjUser $user)
 

Protected Attributes

 $object
 
 $ctrl
 
 $tpl
 
 $lng
 
 $user
 
 $rbacsystem
 
 $contact_array
 

Detailed Description

Member Function Documentation

◆ executeCommand()

ilUsersGalleryGUI::executeCommand ( )

Definition at line 79 of file class.ilUsersGalleryGUI.php.

80 {
81 $next_class = $this->ctrl->getNextClass();
82 $cmd = $this->ctrl->getCmd('view');
83
84 switch($next_class)
85 {
86 case 'ilpublicuserprofilegui':
87 require_once 'Services/User/classes/class.ilPublicUserProfileGUI.php';
88 $profile_gui = new ilPublicUserProfileGUI(ilUtil::stripSlashes($_GET['user']));
89 $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this, 'view'));
90 $this->ctrl->forwardCommand($profile_gui);
91 break;
92
93 default:
94 switch($cmd)
95 {
96 default:
97 $this->$cmd();
98 break;
99 }
100 break;
101 }
102 }
$_GET["client_id"]
GUI class for public user profile presentation.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
$cmd
Definition: sahs_server.php:35

References $_GET, $cmd, and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ renderLinkButton()

ilUsersGalleryGUI::renderLinkButton ( ilTemplate  $tpl,
ilObjUser  $user 
)
protected
Parameters
ilTemplate$tpl
ilObjUser$user

Definition at line 117 of file class.ilUsersGalleryGUI.php.

118 {
119 if(
120 ilBuddySystem::getInstance()->isEnabled() &&
121 $this->user->getId() != $user->getId() &&
122 !$this->user->isAnonymous() &&
123 !$user->isAnonymous()
124 )
125 {
127 $tpl->setVariable('BUDDY_HTML', $button->getHtml());
128 }
129 }

References $tpl, $user, ilBuddySystem\getInstance(), and ilBuddySystemLinkButton\getInstanceByUserId().

+ Here is the call graph for this function:

◆ view()

ilUsersGalleryGUI::view ( )
protected

Displays the participants gallery.

Definition at line 107 of file class.ilUsersGalleryGUI.php.

108 {
109 $template = $this->buildHTML($this->object->getGalleryUsers());
110 $this->tpl->setContent($template->get());
111 }

Field Documentation

◆ $contact_array

ilUsersGalleryGUI::$contact_array
protected

Definition at line 52 of file class.ilUsersGalleryGUI.php.

◆ $ctrl

ilUsersGalleryGUI::$ctrl
protected

Definition at line 27 of file class.ilUsersGalleryGUI.php.

◆ $lng

ilUsersGalleryGUI::$lng
protected

Definition at line 37 of file class.ilUsersGalleryGUI.php.

◆ $object

ilUsersGalleryGUI::$object
protected

Definition at line 22 of file class.ilUsersGalleryGUI.php.

◆ $rbacsystem

ilUsersGalleryGUI::$rbacsystem
protected

Definition at line 47 of file class.ilUsersGalleryGUI.php.

◆ $tpl

ilUsersGalleryGUI::$tpl
protected

Definition at line 32 of file class.ilUsersGalleryGUI.php.

Referenced by renderLinkButton().

◆ $user

ilUsersGalleryGUI::$user
protected

Definition at line 42 of file class.ilUsersGalleryGUI.php.

Referenced by renderLinkButton().


The documentation for this class was generated from the following file: