ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ($method)
 Prepares and displays the info screen. More...
 
- 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 49 of file class.ilChatroomInfoGUI.php.

50 {
51 return new ilInfoScreenGUI($gui);
52 }
Class ilInfoScreenGUI.

References ilChatroomGUIHandler\$gui.

Referenced by executeDefault().

+ Here is the caller graph for this function:

◆ executeDefault()

ilChatroomInfoGUI::executeDefault (   $method)

Prepares and displays the info screen.

Parameters
string$method
Exceptions
ilCtrlException

Reimplemented from ilChatroomGUIHandler.

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

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

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

+ Here is the call graph for this function:

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