Class common\widgets\html5uploader\Widget
| Inheritance | common\widgets\html5uploader\Widget » yii\widgets\InputWidget |
|---|
Class Widget Виджет загрузки файлов основанный на html5
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $allowedExt | array | расширения доступные для загрузки | common\widgets\html5uploader\Widget |
| $maxFileSize | int | максимальный размер загружаемого файла | common\widgets\html5uploader\Widget |
| $tpl | string | шаблон | common\widgets\html5uploader\Widget |
| $uploadRoute | string | маршрут для загрузки файлов | common\widgets\html5uploader\Widget |
| $webroot | string | алиас DOCUMENT ROOT | common\widgets\html5uploader\Widget |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $assetClass | \yii\web\AssetBundle | класса бандла ресурсов | common\widgets\html5uploader\Widget |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getAssetClass() | Возвращает класс модуля ресурсов | common\widgets\html5uploader\Widget |
| init() | common\widgets\html5uploader\Widget | |
| run() | common\widgets\html5uploader\Widget | |
| setAssetClass() | Устанавливает класс модуля ресурсов | common\widgets\html5uploader\Widget |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| registerScripts() | Решистрирует javascript инициализации виджета | common\widgets\html5uploader\Widget |
Property Details
array $allowedExt = ["jpg", "jpeg", "gif", "png", "pdf", "doc", "docx", "xsl", "xslx", "odt", "ppt", "zip", "rar", "gz", "tar", "swf", "csv"]
расширения доступные для загрузки
класса бандла ресурсов
максимальный размер загружаемого файла
шаблон
маршрут для загрузки файлов
алиас DOCUMENT ROOT
Method Details
Возвращает класс модуля ресурсов
| string getAssetClass( ) |
| void init( ) |
Решистрирует javascript инициализации виджета
| void registerScripts( ) |
| void run( ) |
Устанавливает класс модуля ресурсов
| void setAssetClass( $class ) | ||
| $class | string | имя класса |