1 | <?php |
||
27 | class FileWidget extends CakeFileWidget |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Render a file upload form widget. |
||
32 | * |
||
33 | * Data supports the following keys: |
||
34 | * |
||
35 | * - `name` - Set the input name. |
||
36 | * - `escape` - Set to false to disable HTML escaping. |
||
37 | * |
||
38 | * All other keys will be converted into HTML attributes. |
||
39 | * Unlike other input objects the `val` property will be specifically |
||
40 | * ignored. |
||
41 | * |
||
42 | * @param array $data The data to build a file input with. |
||
43 | * @param \Cake\View\Form\ContextInterface $context The current form context. |
||
44 | * |
||
45 | * @return string HTML elements. |
||
46 | */ |
||
47 | public function render(array $data, ContextInterface $context) |
||
66 | } |
||
67 |