| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
Class ilChatroomUploadFileGUI Provides methods to upload a file. More...
 Inheritance diagram for ilChatroomUploadFileGUI:
 Inheritance diagram for ilChatroomUploadFileGUI: Collaboration diagram for ilChatroomUploadFileGUI:
 Collaboration diagram for ilChatroomUploadFileGUI:| Public Member Functions | |
| __construct () | |
| executeDefault ($requestedMethod) | |
| Default execute method.  More... | |
| uploadFile () | |
| Saves file, fetched from $_FILES to specified upload path.  More... | |
| getUploadPath () | |
| Returns upload path.  More... | |
| checkUploadPath ($path) | |
| Checks if given upload path exists, is readable or can be created.  More... | |
| deliverFile () | |
|  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... | |
| Protected Member Functions | |
| displayLinkToUploadedFile ($room, $chat_user) | |
|  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) | |
| Private Member Functions | |
| buildMessage ($messageString, $params, ilChatroomUser $chat_user) | |
| Additional Inherited Members | |
|  Protected Attributes inherited from ilChatroomGUIHandler | |
| $gui | |
| $ilUser | |
| $ilCtrl | |
| $ilLng | |
| $rbacsystem | |
Class ilChatroomUploadFileGUI Provides methods to upload a file.
Definition at line 11 of file class.ilChatroomUploadFileGUI.php.
| ilChatroomUploadFileGUI::__construct | ( | ) | 
Definition at line 14 of file class.ilChatroomUploadFileGUI.php.
| 
 | private | 
Definition at line 165 of file class.ilChatroomUploadFileGUI.php.
References $data, $params, and date.
Referenced by displayLinkToUploadedFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomUploadFileGUI::checkUploadPath | ( | $path | ) | 
Checks if given upload path exists, is readable or can be created.
| string | $path | 
Definition at line 95 of file class.ilChatroomUploadFileGUI.php.
References $path, and ilUtil\makeDirParents().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomUploadFileGUI::deliverFile | ( | ) | 
Definition at line 179 of file class.ilChatroomUploadFileGUI.php.
| 
 | protected | 
Definition at line 128 of file class.ilChatroomUploadFileGUI.php.
References ilChatroomGUIHandler\$ilCtrl, $params, $query, buildMessage(), exit, and ilUtil\stripSlashes().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomUploadFileGUI::executeDefault | ( | $requestedMethod | ) | 
Default execute method.
| string | $requestedMethod | 
Reimplemented from ilChatroomGUIHandler.
Definition at line 23 of file class.ilChatroomUploadFileGUI.php.
| ilChatroomUploadFileGUI::getUploadPath | ( | ) | 
Returns upload path.
Definition at line 84 of file class.ilChatroomUploadFileGUI.php.
References $path, and ilUtil\getDataDir().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomUploadFileGUI::uploadFile | ( | ) | 
Saves file, fetched from $_FILES to specified upload path.
@global ilObjUser $ilUser
Definition at line 32 of file class.ilChatroomUploadFileGUI.php.
References $file, $filename, ilChatroomGUIHandler\$ilCtrl, ilChatroomGUIHandler\$ilUser, $target, ilChatroom\byObjectId(), checkUploadPath(), ilChatroom\checkUserPermissions(), displayLinkToUploadedFile(), getUploadPath(), and ilUtil\moveUploadedFile().
 Here is the call graph for this function:
 Here is the call graph for this function: