| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Class ilChatroomUploadFileTask. More...
 Inheritance diagram for ilChatroomUploadFileTask:
 Inheritance diagram for ilChatroomUploadFileTask: Collaboration diagram for ilChatroomUploadFileTask:
 Collaboration diagram for ilChatroomUploadFileTask:| Public Member Functions | |
| __construct (ilChatroomObjectGUI $gui) | |
| Constructor. | |
| executeDefault ($requestedMethod) | |
| Default execute method. | |
| uploadFile () | |
| Saves file, fetched from $_FILES to specified upload path. | |
| deliverFile () | |
| checkUploadPath ($path) | |
| Checks if given upload path exists, is readable or can be created. | |
| getUploadPath () | |
| Returns upload path. | |
| Protected Member Functions | |
| displayLinkToUploadedFile ($room, $chat_user) | |
| Private Member Functions | |
| buildMessage ($messageString, $params, ilChatroomUser $chat_user) | |
| Private Attributes | |
| $gui | |
Class ilChatroomUploadFileTask.
Provides methods to upload a file.
Definition at line 15 of file class.ilChatroomUploadFileTask.php.
| ilChatroomUploadFileTask::__construct | ( | ilChatroomObjectGUI | $gui | ) | 
Constructor.
| ilChatroomObjectGUI | $gui | 
Reimplemented from ilChatroomTaskHandler.
Definition at line 25 of file class.ilChatroomUploadFileTask.php.
References $gui.
| 
 | private | 
Definition at line 137 of file class.ilChatroomUploadFileTask.php.
Referenced by displayLinkToUploadedFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomUploadFileTask::checkUploadPath | ( | $path | ) | 
Checks if given upload path exists, is readable or can be created.
| string | $path | 
Definition at line 156 of file class.ilChatroomUploadFileTask.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:| ilChatroomUploadFileTask::deliverFile | ( | ) | 
Definition at line 130 of file class.ilChatroomUploadFileTask.php.
| 
 | protected | 
Definition at line 93 of file class.ilChatroomUploadFileTask.php.
References $ilCtrl, $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:| ilChatroomUploadFileTask::executeDefault | ( | $requestedMethod | ) | 
Default execute method.
| string | $requestedMethod | 
Reimplemented from ilChatroomTaskHandler.
Definition at line 35 of file class.ilChatroomUploadFileTask.php.
| ilChatroomUploadFileTask::getUploadPath | ( | ) | 
Returns upload path.
Definition at line 194 of file class.ilChatroomUploadFileTask.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:| ilChatroomUploadFileTask::uploadFile | ( | ) | 
Saves file, fetched from $_FILES to specified upload path.
ilObjUser $ilUser
Definition at line 45 of file class.ilChatroomUploadFileTask.php.
References $file, $filename, $ilCtrl, $ilUser, 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:| 
 | private | 
Definition at line 18 of file class.ilChatroomUploadFileTask.php.
Referenced by __construct().