PHP Class WhFileUpload

Author: Antonio Ramirez ([email protected])
Inheritance: extends CJuiInputWidget
Show file Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$downloadTemplate The template id to display files available for download defaults to null, meaning using the built-in template
$downloadView name of the download view to be rendered
$formView name of the form view to be rendered
$imageProcessing Wheter or not to add the image processing pluging
$multiple boolean set to true to use multiple file upload
$previewImages Wheter or not to preview image files before upload
$previewImagesView name of the view to display images at bootstrap-slideshow
$uploadTemplate The upload template id to display files available for upload defaults to null, meaning using the built-in template
$uploadView name of the upload view to be rendered
$url string the url to the upload handler

Public Methods

Method Description
init ( ) Widget initialization
registerClientScript ( ) Registers and publishes required scripts
run ( ) Generates the required HTML and Javascript

Method Details

init() public method

Widget initialization
public init ( )

registerClientScript() public method

Registers and publishes required scripts

run() public method

Generates the required HTML and Javascript
public run ( )

Property Details

$downloadTemplate public property

The template id to display files available for download defaults to null, meaning using the built-in template
public $downloadTemplate

$downloadView public property

name of the download view to be rendered
public $downloadView

$formView public property

name of the form view to be rendered
public $formView

$imageProcessing public property

Wheter or not to add the image processing pluging
public $imageProcessing

$multiple public property

set to true to use multiple file upload
public bool $multiple
return boolean

$previewImages public property

Wheter or not to preview image files before upload
public $previewImages

$previewImagesView public property

name of the view to display images at bootstrap-slideshow
public $previewImagesView

$uploadTemplate public property

The upload template id to display files available for upload defaults to null, meaning using the built-in template
public $uploadTemplate

$uploadView public property

name of the upload view to be rendered
public $uploadView

$url public property

the url to the upload handler
public string $url
return string