ILIAS  release_8 Revision v8.23
ilChatroomCreateGUI Class Reference

Class ilChatroomCreateGUI. More...

+ Inheritance diagram for ilChatroomCreateGUI:
+ Collaboration diagram for ilChatroomCreateGUI:

Public Member Functions

 save ()
 
 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)
 

Additional Inherited Members

- 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)
 
- 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 ilChatroomCreateGUI.

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

IN USE?

Definition at line 28 of file class.ilChatroomCreateGUI.php.

Member Function Documentation

◆ executeDefault()

ilChatroomCreateGUI::executeDefault ( string  $requestedMethod)

Definition at line 49 of file class.ilChatroomCreateGUI.php.

Referenced by save().

49  : void
50  {
51  $this->gui->switchToVisibleMode();
52  $this->gui->createObject();
53  }
+ Here is the caller graph for this function:

◆ save()

ilChatroomCreateGUI::save ( )

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

References $response, ilChatroom\byObjectId(), and executeDefault().

30  : void
31  {
32  $formFactory = new ilChatroomFormFactory();
33  $form = $formFactory->getCreationForm();
34 
35  if ($form->checkInput()) {
36  $roomObj = $this->gui->insertObject();
37  $room = ilChatroom::byObjectId($roomObj->getId());
38 
39  $connector = $this->gui->getConnector();
40  $response = $connector->sendCreatePrivateRoom($room->getRoomId(), 0, $roomObj->getOwner(), $roomObj->getTitle());
41 
42  $this->ilCtrl->setParameter($this->gui, 'ref_id', $this->gui->getRefId());
43  $this->ilCtrl->redirect($this->gui, 'settings-general');
44  } else {
45  $this->executeDefault('create');
46  }
47  }
Class ilChatroomFormFactory.
executeDefault(string $requestedMethod)
static byObjectId(int $object_id)
$response
+ Here is the call graph for this function:

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