1 | <?php |
||
17 | class Date extends ZendDate implements InputProviderInterface |
||
18 | { |
||
19 | /** |
||
20 | * Override the type="date" because we can't |
||
21 | * set a placeholder on html5 date input |
||
22 | */ |
||
23 | protected $attributes = ['type' => 'text']; |
||
24 | |||
25 | /** |
||
26 | * Accepted options for DateTime: |
||
27 | * - format: A \DateTime compatible string |
||
28 | * |
||
29 | * @param array|\Traversable $options |
||
30 | * @return \DateTime |
||
31 | */ |
||
32 | 3 | public function setOptions($options) |
|
42 | |||
43 | /** |
||
44 | * Provide default input rules for this element |
||
45 | * Attaches default validators for the Date input. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 5 | public function getInputSpecification() |
|
68 | } |
||
69 |