ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilChatroomUploadFileTask. More...
Public Member Functions | |
__construct (ilDBayObjectGUI $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. | |
Public Member Functions inherited from ilDBayTaskHandler | |
execute ($method) | |
Executes given $method if existing, otherwise executes executeDefault() method. |
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 | ( | ilDBayObjectGUI | $gui | ) |
Constructor.
ilDBayObjectGUI | $gui |
Reimplemented from ilDBayTaskHandler.
Definition at line 25 of file class.ilChatroomUploadFileTask.php.
References $gui.
|
private |
Definition at line 134 of file class.ilChatroomUploadFileTask.php.
References $data.
Referenced by displayLinkToUploadedFile().
ilChatroomUploadFileTask::checkUploadPath | ( | $path | ) |
Checks if given upload path exists, is readable or can be created.
string | $path |
Definition at line 153 of file class.ilChatroomUploadFileTask.php.
References $path, and ilUtil\makeDirParents().
Referenced by uploadFile().
ilChatroomUploadFileTask::deliverFile | ( | ) |
Definition at line 127 of file class.ilChatroomUploadFileTask.php.
|
protected |
Definition at line 90 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 ilDBayTaskHandler.
Definition at line 35 of file class.ilChatroomUploadFileTask.php.
ilChatroomUploadFileTask::getUploadPath | ( | ) |
Returns upload path.
Definition at line 191 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, ilChatroom\byObjectId(), checkUploadPath(), ilChatroom\checkUserPermissions(), displayLinkToUploadedFile(), getUploadPath(), ilUtil\moveUploadedFile(), and ilUtil\redirect().
|
private |
Definition at line 18 of file class.ilChatroomUploadFileTask.php.
Referenced by __construct().