1 | <?php |
||
24 | class Date extends Text |
||
25 | 1 | { |
|
26 | /** @var string */ |
||
27 | protected $formatValue; |
||
28 | |||
29 | /** @var string */ |
||
30 | protected $dateFormatInput = 'd.m.Y'; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $dateFormatOutput = 'Y-m-d%'; |
||
34 | |||
35 | /** |
||
36 | * Sets date-input format. |
||
37 | * @param string $format |
||
38 | * @return Date |
||
39 | */ |
||
40 | public function setDateFormatInput($format) |
||
45 | |||
46 | /** |
||
47 | * Returns date-input format. |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getDateFormatInput() |
||
54 | |||
55 | /** |
||
56 | * Sets date-output format. |
||
57 | * @param string $format |
||
58 | * @return Date |
||
59 | */ |
||
60 | public function setDateFormatOutput($format) |
||
65 | |||
66 | /** |
||
67 | * Returns date-output format. |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getDateFormatOutput() |
||
74 | |||
75 | /** |
||
76 | * @return \Nette\Forms\Controls\TextInput |
||
77 | */ |
||
78 | protected function getFormControl() |
||
86 | |||
87 | /** |
||
88 | * @param string $value |
||
89 | * @return Condition|bool |
||
90 | * @throws \Exception |
||
91 | * @internal |
||
92 | */ |
||
93 | public function __getCondition($value) |
||
105 | } |
||
106 |