PHP Class dosamigos\fileupload\FileUploadUI

Widget to render the jQuery File Upload UI plugin as shown in its demo
Author: Alexander Kochetov ([email protected])
Inheritance: extends BaseUpload
Datei anzeigen Open project: 2amigos/yii2-file-upload-widget Class Usage Examples

Public Properties

Property Type Description
$downloadTemplateId the ID of the download template, given as parameter to the tmpl() method to set the downloadTemplate option.
$downloadTemplateView the download view path to render the js download template
$fieldOptions the HTML attributes for the file input tag.
$formView the form view path to render the JQuery File Upload UI
$gallery whether to use the Bootstrap Gallery on the images or not
$galleryTemplateView the gallery
$load load previously uploaded images or not
$uploadTemplateId the ID of the upload template, given as parameter to the tmpl() method to set the uploadTemplate option.
$uploadTemplateView the upload view path to render the js upload template

Public Methods

Method Description
init ( )
registerClientScript ( ) Registers required script for the plugin to work as jQuery File Uploader UI
run ( )

Method Details

init() public method

public init ( )

registerClientScript() public method

Registers required script for the plugin to work as jQuery File Uploader UI

run() public method

public run ( )

Property Details

$downloadTemplateId public_oe property

the ID of the download template, given as parameter to the tmpl() method to set the downloadTemplate option.
public $downloadTemplateId

$downloadTemplateView public_oe property

the download view path to render the js download template
public $downloadTemplateView

$fieldOptions public_oe property

the HTML attributes for the file input tag.
See also: yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
public $fieldOptions

$formView public_oe property

the form view path to render the JQuery File Upload UI
public $formView

$galleryTemplateView public_oe property

the gallery
public $galleryTemplateView

$load public_oe property

load previously uploaded images or not
public $load

$uploadTemplateId public_oe property

the ID of the upload template, given as parameter to the tmpl() method to set the uploadTemplate option.
public $uploadTemplateId

$uploadTemplateView public_oe property

the upload view path to render the js upload template
public $uploadTemplateView