ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilChatroomUploadFileTask. More...
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().
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().
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().
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().
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().
|
private |
Definition at line 18 of file class.ilChatroomUploadFileTask.php.
Referenced by __construct().