ILIAS  release_8 Revision v8.24
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 (string $requestedMethod)
 
- Public Member Functions inherited from ilChatroomGUIHandler
 execute (string $method)
 
 executeDefault (string $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, bool $isJson=false)
 Sends a json encoded response and exits the php process. More...
 
 hasPermission (string $permission)
 

Protected Member Functions

 createInfoScreenGUI (ilChatroomObjectGUI $gui)
 
- Protected Member Functions inherited from ilChatroomGUIHandler
 getRequestValue (string $key, Transformation $trafo, $default=null)
 
 hasRequestValue (string $key)
 
 getRoomByObjectId (int $objectId)
 
 exitIfNoRoomExists (?ilChatroom $room)
 Checks if a ilChatroom exists. More...
 
 exitIfNoRoomModeratePermission (ilChatroom $room, int $subRoom, ilChatroomUser $chatUser)
 Check if user can moderate a chatroom. More...
 
 canModerate (ilChatroom $room, int $subRoom, int $usrId)
 
 isMainRoom (int $subRoomId)
 

Additional Inherited Members

- Protected Attributes inherited from ilChatroomGUIHandler
ilChatroomObjectGUI $gui
 
ilObjUser $ilUser
 
ilCtrlInterface $ilCtrl
 
ilLanguage $ilLng
 
Filesystem $webDirectory
 
ilObjectService $obj_service
 
FileUpload $upload
 
ilRbacSystem $rbacsystem
 
ilGlobalTemplateInterface $mainTpl
 
ILIAS $ilias
 
ilNavigationHistory $navigationHistory
 
ilTree $tree
 
ilTabsGUI $tabs
 
UIFactory $uiFactory
 
UIRenderer $uiRenderer
 
GlobalHttpState $http
 
Refinery $refinery
 

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 28 of file class.ilChatroomInfoGUI.php.

Member Function Documentation

◆ createInfoScreenGUI()

ilChatroomInfoGUI::createInfoScreenGUI ( ilChatroomObjectGUI  $gui)
protected

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

31 {
32 return new ilInfoScreenGUI($gui);
33 }
Class ilInfoScreenGUI.

References ilChatroomGUIHandler\$gui.

Referenced by executeDefault().

+ Here is the caller graph for this function:

◆ executeDefault()

ilChatroomInfoGUI::executeDefault ( string  $requestedMethod)

Reimplemented from ilChatroomGUIHandler.

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

35 : void
36 {
37 $this->redirectIfNoPermission('visible');
38
39 $this->gui->switchToVisibleMode();
40
41 $info = $this->createInfoScreenGUI($this->gui);
42
43 $info->enablePrivateNotes();
44
45 $refId = $this->getRequestValue('ref_id', $this->refinery->kindlyTo()->int());
46 if (ilChatroom::checkUserPermissions('read', $refId, false)) {
47 $info->enableNews();
48 }
49
50 $info->addMetaDataSections(
51 $this->gui->getObject()->getId(),
52 0,
53 $this->gui->getObject()->getType()
54 );
55 if ($requestedMethod === '') {
56 $this->ilCtrl->setCmd('showSummary');
57 } else {
58 $this->ilCtrl->setCmd($requestedMethod);
59 }
60 $this->ilCtrl->forwardCommand($info);
61 }
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
getRequestValue(string $key, Transformation $trafo, $default=null)
createInfoScreenGUI(ilChatroomObjectGUI $gui)
static checkUserPermissions($permissions, int $ref_id, bool $send_info=true)
Checks user permissions by given array and ref_id.
Class ilCtrl provides processing control methods.
setCmd(?string $a_cmd)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
$refId
Definition: xapitoken.php:58

References $refId, ilChatroom\checkUserPermissions(), createInfoScreenGUI(), ilCtrl\forwardCommand(), ilChatroomGUIHandler\getRequestValue(), ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), and ilCtrl\setCmd().

+ Here is the call graph for this function:

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