ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilChatroomInfoGUI Class Reference

Class ilChatroomInfoGUI Provides methods to prepare and display the info task. More...

+ Inheritance diagram for ilChatroomInfoGUI:
+ Collaboration diagram for ilChatroomInfoGUI:

Public Member Functions

 executeDefault ($requestedMethod)
 
- Public Member Functions inherited from ilChatroomGUIHandler
 __construct (ilChatroomObjectGUI $gui)
 
 execute ($method)
 Executes given $method if existing, otherwise executes executeDefault() method. More...
 
 executeDefault ($requestedMethod)
 
 redirectIfNoPermission ($permission)
 Checks for requested permissions and redirects if the permission check failed. More...
 
 isSuccessful ($response)
 Checks for success param in an json decoded response. More...
 
 sendResponse ($response)
 Sends a json encoded response and exits the php process. More...
 
 hasPermission ($permission)
 Checks for access with ilRbacSystem. More...
 

Protected Member Functions

 createInfoScreenGUI ($gui)
 
- Protected Member Functions inherited from ilChatroomGUIHandler
 getRoomByObjectId ($objectId)
 
 exitIfNoRoomExists ($room)
 Checks if a ilChatroom exists. More...
 
 exitIfNoRoomPermission ($room, $subRoom, $chat_user)
 Check if user can moderate a chatroom. More...
 
 canModerate ($room, $subRoom, $user_id)
 Checks if the user has permission to moderate a ilChatroom. More...
 
 isMainRoom ($subRoomId)
 

Additional Inherited Members

- Protected Attributes inherited from ilChatroomGUIHandler
 $gui
 
 $ilUser
 
 $ilCtrl
 
 $ilLng
 
 $webDirectory
 
 $obj_service
 
 $upload
 
 $rbacsystem
 
 $mainTpl
 
 $ilias
 
 $navigationHistory
 
 $tree
 
 $tabs
 

Detailed Description

Class ilChatroomInfoGUI Provides methods to prepare and display the info task.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilChatroomInfoGUI.php.

Member Function Documentation

◆ createInfoScreenGUI()

ilChatroomInfoGUI::createInfoScreenGUI (   $gui)
protected
Parameters
ilChatroomObjectGui$gui
Returns
ilInfoScreenGUI

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

References ilChatroomGUIHandler\$gui.

Referenced by executeDefault().

48  {
49  return new ilInfoScreenGUI($gui);
50  }
Class ilInfoScreenGUI.
+ Here is the caller graph for this function:

◆ executeDefault()

ilChatroomInfoGUI::executeDefault (   $requestedMethod)

Definition at line 16 of file class.ilChatroomInfoGUI.php.

References $_GET, ilChatroom\checkUserPermissions(), createInfoScreenGUI(), ilCtrl\forwardCommand(), ilChatroomGUIHandler\redirectIfNoPermission(), and ilCtrl\setCmd().

17  {
18  $this->redirectIfNoPermission('visible');
19 
20  $this->gui->switchToVisibleMode();
21 
22  $info = $this->createInfoScreenGUI($this->gui);
23 
24  $info->enablePrivateNotes();
25 
26  if (ilChatroom::checkUserPermissions("read", (int) $_GET["ref_id"], false)) {
27  $info->enableNews();
28  }
29 
30  $info->addMetaDataSections(
31  $this->gui->object->getId(),
32  0,
33  $this->gui->object->getType()
34  );
35  if (!$method) {
36  $this->ilCtrl->setCmd('showSummary');
37  } else {
38  $this->ilCtrl->setCmd($method);
39  }
40  $this->ilCtrl->forwardCommand($info);
41  }
This class provides processing control methods.
$_GET["client_id"]
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
setCmd($a_cmd)
Set the current command.
static checkUserPermissions($permissions, $ref_id, $send_info=true)
Checks user permissions by given array and ref_id.
forwardCommand($a_gui_object)
Forward flow of control to next gui class this invokes the executeCommand() method of the gui object ...
+ Here is the call graph for this function:

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