depage-forms
v1.4.1
html forms made easy
Loading...
Searching...
No Matches
Elements/Email.php
Go to the documentation of this file.
1
<?php
2
10
11
namespace
Depage\HtmlForm\Elements;
12
38
class
Email
extends
Text
39
{
43
protected
$checkDns
=
false
;
44
54
protected
function
setDefaults
(): void
55
{
56
parent::setDefaults();
57
58
$this->defaults[
'errorMessage'
] = _(
'Please enter a valid email address'
);
59
$this->defaults[
'checkDns'
] =
false
;
60
61
// @todo add option to test mail domain name (dns)
62
}
63
71
protected
function
validatorCall
(): bool
72
{
73
return
$this->validator->validate($this->value, [
'checkDns'
=> $this->checkDns]);
74
}
75
}
76
77
/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
Depage\HtmlForm\Elements\Email
HTML email input type.
Definition
Elements/Email.php:39
Depage\HtmlForm\Elements\Email\validatorCall
validatorCall()
custom validator call hook
Definition
Elements/Email.php:71
Depage\HtmlForm\Elements\Email\$checkDns
$checkDns
checkDns
Definition
Elements/Email.php:43
Depage\HtmlForm\Elements\Email\setDefaults
setDefaults()
collects initial values across subclasses.
Definition
Elements/Email.php:54
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:40
Elements
Email.php
Generated on
for depage-forms by
doxygen
1.14.0
For an overview of all docs, go to
docs.depage.net