All Data Structures Functions Variables Pages
Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
FileUpload Class Reference
Inheritance diagram for FileUpload:
ZurmoWidget ImageFileUpload LogoFileUpload

Public Member Functions

 init ()
 
 run ()
 
- Public Member Functions inherited from ZurmoWidget
 init ()
 

Data Fields

const DOWNLOAD_TEMPLATE_ID = 'template-download'
 
const UPLOAD_TEMPLATE_ID = 'template-upload'
 
 $scriptFile
 
 $cssFile = null
 
 $assetFolderName = 'fileUpload'
 
 $uploadUrl
 
 $deleteUrl
 
 $allowMultipleUpload = false
 
 $renderFileDownloadLinks = false
 
 $options
 
 $formName
 
 $formData
 
 $inputName
 
 $inputId
 
 $hiddenInputName
 
 $existingFiles
 
 $maxSize
 
 $beforeUploadAction
 
 $afterDeleteAction
 
 $onSuccessAction
 
 $showMaxSize = true
 
- Data Fields inherited from ZurmoWidget
 $scriptUrl
 
 $scriptFile
 
 $cssFile
 
 $assetFolderName
 

Protected Member Functions

 getDropZoneContent ()
 
 getAddLabel ()
 
 makeDownloadRowScriptContent ()
 
 makeUploadRowScriptContent ()
 
 getDownloadTemplateId ()
 
 getUploadTemplateId ()
 
 renderParamForInit ($paramName)
 
- Protected Member Functions inherited from ZurmoWidget
 resolvePackagePath ()
 
 registerCoreScripts ()
 
 registerScriptFile ($fileName, $position=CClientScript::POS_END)
 

Static Protected Member Functions

static renderMaxSizeContent ($maxSize, $showMaxSize)
 

Detailed Description

Render a file upload element that can allow for multiple file uploads and calls ajax to upload the files to the server as you add them. Utilizes file upload plugin here: https://github.com/blueimp/jQuery-File-Upload

Definition at line 42 of file FileUpload.php.

Member Function Documentation

init ( )

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Definition at line 160 of file FileUpload.php.

Field Documentation

$scriptFile
Initial value:
= array('jquery.fileupload.js',
'jquery.fileupload-ui.js', 'jquery.tmpl.min.js', 'jquery.iframe-transport.js')

Definition at line 48 of file FileUpload.php.


The documentation for this class was generated from the following file:
Generated on Mon Jun 1 2020 07:10:47