PHP Class trntv\filekit\widget\Upload

Inheritance: extends yii\widgets\InputWidget
显示文件 Open project: trntv/yii2-file-kit Class Usage Examples

Public Properties

Property Type Description
$acceptFileTypes regexp
$clientOptions array
$files
$maxFileSize max file size in bytes
$maxNumberOfFiles integer
$messagesCategory string
$minFileSize min file size in bytes
$multiple boolean
$showPreviewFilename boolean
$sortable boolean
$url array | ArrayObject

Public Methods

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

Protected Methods

Method Description
registerMessages ( ) : void

Method Details

getFileInputName() public method

public getFileInputName ( ) : string
return string

init() public method

public init ( )

registerClientScript() public method

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

registerMessages() protected method

protected registerMessages ( ) : void
return void Registers widget translations

run() public method

public run ( ) : string
return string

Property Details

$acceptFileTypes public_oe property

regexp
public $acceptFileTypes

$clientOptions public_oe property

public array $clientOptions
return array

$files public_oe property

public $files

$maxFileSize public_oe property

max file size in bytes
public $maxFileSize

$maxNumberOfFiles public_oe property

public int $maxNumberOfFiles
return integer

$messagesCategory public_oe property

public string $messagesCategory
return string

$minFileSize public_oe property

min file size in bytes
public $minFileSize

$multiple public_oe property

public bool $multiple
return boolean

$showPreviewFilename public_oe property

public bool $showPreviewFilename
return boolean

$sortable public_oe property

public bool $sortable
return boolean

$url public_oe property

public array|ArrayObject $url
return array | ArrayObject