| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class InputMaskDateField extends InputMaskDateTimeField |
||
| 13 | { |
||
| 14 | public function __construct($name, $title = null, $value = null) |
||
| 15 | { |
||
| 16 | parent::__construct($name, $title, $value); |
||
| 17 | |||
| 18 | $format = self::getDefaultDateFormat(); |
||
| 19 | $this->setInputFormat($format); |
||
| 20 | $this->setPlaceholder($format); |
||
| 21 | // use ISO date format when unmasking to ensure proper data storage in the db |
||
| 22 | $this->setOutputFormat('yyyy-mm-dd'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function setValue($value, $data = null) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |