Date.php
Go to the documentation of this file.
1<?php
11
17class Date extends Text
18{
24 protected function setDefaults()
25 {
26 parent::setDefaults();
27
28 $this->defaults['placeholder'] = _("YYYY-MM-DD");
29 $this->defaults['validator'] = "/\d{4}-\d{2}-\d{2}/";
30 }
31}
32
33/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
HTML date input type.
Definition Date.php:18
setDefaults()
sets defaults for date input
Definition Date.php:24
HTML text input type.
Definition Text.php:39
Classes for HTML input-elements.
Definition Address.php:9