docs depage-forms
Elements
Elements/Tel.php
Go to the documentation of this file.
1
<?php
10
namespace
Depage\HtmlForm\Elements
;
11
37
class
Tel
extends
Text
38
{
48
protected
function
setDefaults
()
49
{
50
parent::setDefaults();
51
52
$this->defaults[
'errorMessage'
] = _(
'Please enter a valid telephone number'
);
53
}
54
}
55
56
/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
Depage\HtmlForm\Elements\Tel
HTML tel input type.
Definition
Elements/Tel.php:38
Depage\HtmlForm\Elements\Tel\setDefaults
setDefaults()
collects initial values across subclasses
Definition
Elements/Tel.php:48
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:39
Depage\HtmlForm\Elements
Classes for HTML input-elements.
Definition
Address.php:9