1 | <?php |
||
20 | class BaseUpload extends InputWidget |
||
21 | { |
||
22 | /** |
||
23 | * @var string|array upload route |
||
24 | */ |
||
25 | public $url; |
||
26 | /** |
||
27 | * @var array the plugin options. For more information see the jQuery File Upload options documentation. |
||
28 | * @see https://github.com/blueimp/jQuery-File-Upload/wiki/Options |
||
29 | */ |
||
30 | public $clientOptions = []; |
||
31 | /** |
||
32 | * @var array the event handlers for the jQuery File Upload plugin. |
||
33 | * Please refer to the jQuery File Upload plugin web page for possible options. |
||
34 | * @see https://github.com/blueimp/jQuery-File-Upload/wiki/Options#callback-options |
||
35 | */ |
||
36 | public $clientEvents = []; |
||
37 | /** |
||
38 | * @var array for the internalization configuration |
||
39 | */ |
||
40 | public $i18n = []; |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | * @throws \yii\base\InvalidConfigException |
||
45 | */ |
||
46 | 4 | public function init() |
|
57 | |||
58 | /** |
||
59 | * Initialize internalization |
||
60 | */ |
||
61 | 4 | public function initI18N() |
|
73 | } |
||
74 |