1 | <?php |
||
10 | class File extends BaseFile |
||
11 | { |
||
12 | protected $type = 'file'; |
||
13 | |||
14 | protected $multiSelect = false; |
||
15 | |||
16 | protected $showFileList = true; |
||
17 | |||
18 | protected $fileUploadsLimit = 0; |
||
19 | |||
20 | public function isMultiSelect() |
||
24 | |||
25 | public function enableMultiSelect() |
||
31 | |||
32 | public function isShowFileList() |
||
36 | |||
37 | /** |
||
38 | * Disable file list |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function disableFileList() |
||
48 | |||
49 | protected function getDefaultExtensions() |
||
53 | |||
54 | public function getFileUploadsLimit() |
||
58 | |||
59 | /** |
||
60 | * The maximum number of files that can be uploaded. |
||
61 | * |
||
62 | * @param int $value |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setFileUploadsLimit(int $value) |
||
72 | |||
73 | public function getValue() |
||
86 | |||
87 | protected function prepareValue($value) |
||
95 | |||
96 | public function toArray() |
||
104 | } |
||
105 |