ILIAS  release_8 Revision v8.19
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 (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.

Referenced by executeDefault().

31  {
32  return new ilInfoScreenGUI($gui);
33  }
Class ilInfoScreenGUI.
+ Here is the caller graph for this function:

◆ executeDefault()

ilChatroomInfoGUI::executeDefault ( string  $requestedMethod)

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

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

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  }
static checkUserPermissions($permissions, int $ref_id, bool $send_info=true)
Checks user permissions by given array and ref_id.
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
getRequestValue(string $key, Transformation $trafo, $default=null)
createInfoScreenGUI(ilChatroomObjectGUI $gui)
$refId
Definition: xapitoken.php:58
+ Here is the call graph for this function:

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