ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilChatroomViewGUI Class Reference

Class ilChatroomViewGUI. More...

+ Inheritance diagram for ilChatroomViewGUI:
+ Collaboration diagram for ilChatroomViewGUI:

Public Member Functions

 renderFileUploadForm (ilTemplate $roomTpl)
 Prepares Fileupload form and displays it. More...
 
- Public Member Functions inherited from ilChatroomGUIHandler
 __construct (ilChatroomObjectGUI $gui)
 
 sendResponse ($response)
 Sends a json encoded response and exits the php process. More...
 
 hasPermission ($permission)
 Checks for access with ilRbacSystem. More...
 
 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...
 

Private Member Functions

 cancelJoin ($message)
 Calls ilUtil::sendFailure method using given $message as parameter. More...
 

Additional Inherited Members

- 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)
 
- Protected Attributes inherited from ilChatroomGUIHandler
 $gui
 
 $ilUser
 
 $ilCtrl
 
 $ilLng
 
 $rbacsystem
 

Detailed Description

Class ilChatroomViewGUI.

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

Definition at line 13 of file class.ilChatroomViewGUI.php.

Member Function Documentation

◆ cancelJoin()

ilChatroomViewGUI::cancelJoin (   $message)
private

Calls ilUtil::sendFailure method using given $message as parameter.

Parameters
string$message

Definition at line 297 of file class.ilChatroomViewGUI.php.

References ilChatroomGUIHandler\$ilCtrl, $lng, array, ilTemplate\parseCurrentBlock(), ilUtil\sendFailure(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

Referenced by renderFileUploadForm().

298  {
299  ilUtil::sendFailure($message);
300  }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderFileUploadForm()

ilChatroomViewGUI::renderFileUploadForm ( ilTemplate  $roomTpl)

Prepares Fileupload form and displays it.

Parameters
ilTemplate$roomTpl

Definition at line 406 of file class.ilChatroomViewGUI.php.

References $_GET, $_SESSION, ilChatroomGUIHandler\$ilCtrl, ilChatroomGUIHandler\$ilUser, $lng, $title, $tpl, ilChatroom\addPrivateRoom(), array, ilChatroom\byObjectId(), cancelJoin(), ilChatroom\checkUserPermissions(), ilChatroomGUIHandler\executeDefault(), exit, ilChatroomUser\getChatNameSuggestions(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroom\getUniquePrivateRoomTitle(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroom\isSubscribed(), ilUtil\sendFailure(), ilChatroomUser\setUsername(), and HTML_Template_IT\setVariable().

407  {
408  // @todo: Not implemented yet
409  return;
410 
411  require_once 'Modules/Chatroom/classes/class.ilChatroomFormFactory.php';
412  $formFactory = new ilChatroomFormFactory();
413  $file_upload = $formFactory->getFileUploadForm();
414  //$file_upload->setFormAction( $ilCtrl->getFormAction($this->gui, 'UploadFile-uploadFile') );
415  $roomTpl->setVariable('FILE_UPLOAD', $file_upload->getHTML());
416  }
Class ilChatroomFormFactory.
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:613
+ Here is the call graph for this function:

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