docs depage-forms
Elements
Date.php
Go to the documentation of this file.
1
<?php
10
namespace
Depage\HtmlForm\Elements
;
11
17
class
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 : */
Depage\HtmlForm\Elements\Date
HTML date input type.
Definition
Date.php:18
Depage\HtmlForm\Elements\Date\setDefaults
setDefaults()
sets defaults for date input
Definition
Date.php:24
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:39
Depage\HtmlForm\Elements
Classes for HTML input-elements.
Definition
Address.php:9