ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilUsersGalleryGUI Class Reference

ilUsersGalleryGUI: ilPublicUserProfileGUI ilUsersGalleryGUI: ilCourseMembershipGUI, ilGroupMembershipGUI 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.

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

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"]
$cmd
Definition: sahs_server.php:35
GUI class for public user profile presentation.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ 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.

References $tpl, $user, ilObject\getId(), ilPanelGUI\getInstance(), ilBuddySystem\getInstance(), ilBuddyList\getInstanceByGlobalUser(), ilBuddySystemLinkButton\getInstanceByUserId(), ilObjUser\isAnonymous(), object, HTML_Template_IT\setVariable(), and user().

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  }
user()
Definition: user.php:4
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:613
getId()
get object id public
+ 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.

References object.

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

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: