ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilCloudPluginUploadGUI. More...
Public Member Functions | |
executeCommand () | |
execute command More... | |
asyncUploadFile () | |
initUploadForm () | |
cancelAll () | |
uploadFiles () | |
Update properties. More... | |
handleFileUpload ($file_upload) | |
Public Member Functions inherited from ilCloudPluginGUI | |
__construct ($plugin_service_class) | |
getPluginObject () | |
getPluginHookObject () | |
getAdminConfigObject () | |
getService () | |
txt ($var="") | |
executeCommand () | |
Protected Member Functions | |
uploadDirectory ($dir, $parent_id, $file_tree, $keep_structure=true) | |
Recursive Method to upload a directory. More... | |
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, $DIC, PHPMailer\PHPMailer\$options, ilJsonUtil\encode(), exit, and initUploadForm().
ilCloudPluginUploadGUI::cancelAll | ( | ) |
Definition at line 96 of file class.ilCloudPluginUploadGUI.php.
References exit.
ilCloudPluginUploadGUI::executeCommand | ( | ) |
ilCloudPluginUploadGUI::handleFileUpload | ( | $file_upload | ) |
Definition at line 134 of file class.ilCloudPluginUploadGUI.php.
References $_POST, $_SESSION, $response, ilUtil\delDir(), exit, ilCloudFileTree\getFileTreeFromSession(), ilUtil\ilTempnam(), ilUtil\makeDir(), ilFileUtils\processZipFile(), and uploadDirectory().
Referenced by uploadFiles().
ilCloudPluginUploadGUI::initUploadForm | ( | ) |
Definition at line 65 of file class.ilCloudPluginUploadGUI.php.
References $DIC, $ilCtrl, $lng, ilUtil\getImagePath(), and ilFormPropertyGUI\setRequired().
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 184 of file class.ilCloudPluginUploadGUI.php.
References ilFileUtilsException\$BROKEN_FILE, $DIC, and $lng.
Referenced by handleFileUpload().
ilCloudPluginUploadGUI::uploadFiles | ( | ) |
Update properties.
Definition at line 106 of file class.ilCloudPluginUploadGUI.php.
References $response, ilJsonUtil\encode(), exit, handleFileUpload(), initUploadForm(), and ilCloudException\UPLOAD_FAILED.
|
protected |
Definition at line 22 of file class.ilCloudPluginUploadGUI.php.