ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilCloudPluginUploadGUI. More...
Public Member Functions | |
executeCommand () | |
execute command | |
asyncUploadFile () | |
initUploadForm () | |
cancelAll () | |
uploadFiles () | |
Update properties. | |
handleFileUpload ($file_upload) | |
Public Member Functions inherited from ilCloudPluginGUI | |
__construct ($plugin_service_class) | |
getPluginObject () | |
getPluginHookObject () | |
getAdminConfigObject () | |
getService () | |
txt ($var="") |
Protected Member Functions | |
uploadDirectory ($dir, $parent_id, $file_tree, $keep_structure=true) | |
Recursive Method to upload a directory. |
Protected Attributes | |
$form | |
Protected Attributes inherited from ilCloudPluginGUI | |
$service = null |
Class ilCloudPluginUploadGUI.
Standard class for uploading files. Can be overwritten if needed.
Definition at line 17 of file class.ilCloudPluginUploadGUI.php.
ilCloudPluginUploadGUI::asyncUploadFile | ( | ) |
Definition at line 40 of file class.ilCloudPluginUploadGUI.php.
References $_POST, $_SESSION, $options, ilJsonUtil\encode(), exit, and initUploadForm().
ilCloudPluginUploadGUI::cancelAll | ( | ) |
Definition at line 93 of file class.ilCloudPluginUploadGUI.php.
References exit.
ilCloudPluginUploadGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilCloudPluginGUI.
Definition at line 26 of file class.ilCloudPluginUploadGUI.php.
ilCloudPluginUploadGUI::handleFileUpload | ( | $file_upload | ) |
Definition at line 136 of file class.ilCloudPluginUploadGUI.php.
References $_POST, $_SESSION, ilUtil\delDir(), exit, ilCloudFileTree\getFileTreeFromSession(), ilUtil\ilTempnam(), ilUtil\makeDir(), ilFileUtils\processZipFile(), and uploadDirectory().
Referenced by uploadFiles().
ilCloudPluginUploadGUI::initUploadForm | ( | ) |
Definition at line 64 of file class.ilCloudPluginUploadGUI.php.
References $file, $ilCtrl, $lng, and ilUtil\getImagePath().
Referenced by asyncUploadFile(), and uploadFiles().
|
protected |
Recursive Method to upload a directory.
string | $dir | path to directory |
int | $parent_id | id of parent folder |
ilCloudFileTree | $file_tree | |
bool | $keep_structure | if false, only files will be extracted, without folder structure |
ilCloudException |
Definition at line 196 of file class.ilCloudPluginUploadGUI.php.
References ilFileUtilsException\$BROKEN_FILE, $file, and $lng.
Referenced by handleFileUpload().
ilCloudPluginUploadGUI::uploadFiles | ( | ) |
Update properties.
Definition at line 103 of file class.ilCloudPluginUploadGUI.php.
References ilJsonUtil\encode(), exit, handleFileUpload(), initUploadForm(), and ilCloudException\UPLOAD_FAILED.
|
protected |
Definition at line 22 of file class.ilCloudPluginUploadGUI.php.