\TbFileUpload

Class TbFileUpload

Modified version from the great implementation of XUpload Yii Extension

Summary

Methods
Properties
Constants
init()
run()
registerClientScript()
$url
$multiple
$uploadTemplate
$downloadTemplate
$previewImages
$imageProcessing
$formView
$uploadView
$downloadView
$previewImagesView
No constants found
No protected methods found
No protected properties found
N/A
getFileValidatorProperty()
No private properties found
N/A

Properties

$url

$url : string

the url to the upload handler

Type

string

$multiple

$multiple : boolean

set to true to use multiple file upload

Type

boolean

$uploadTemplate

$uploadTemplate

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

$downloadTemplate

$downloadTemplate

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

$previewImages

$previewImages

Wheter or not to preview image files before upload

$imageProcessing

$imageProcessing

Whether or not to add the image processing pluing

$formView

$formView : string

Type

string — name of the form view to be rendered

$uploadView

$uploadView : string

Type

string — name of the upload view to be rendered

$downloadView

$downloadView : string

Type

string — name of the download view to be rendered

$previewImagesView

$previewImagesView : string

Type

string — name of the view to display images at bootstrap-slideshow

Methods

init()

init()

Widget initialization

run()

run()

Generates the required HTML and Javascript

registerClientScript()

registerClientScript(string $id)

Registers and publishes required scripts

Parameters

string $id

getFileValidatorProperty()

getFileValidatorProperty(\CModel $model, string $attribute, null $property) : string

Check for a property of CFileValidator

Parameters

\CModel $model
string $attribute
null $property

Returns

string —

property's value or null