Elements/Email.php
Go to the documentation of this file.
1<?php
11
37class Email extends Text
38{
42 protected $checkDns = false;
43
53 protected function setDefaults()
54 {
55 parent::setDefaults();
56
57 $this->defaults['errorMessage'] = _('Please enter a valid email address');
58 $this->defaults['checkDns'] = false;
59
60 // @todo add option to test mail domain name (dns)
61 }
62
70 protected function validatorCall()
71 {
72 return $this->validator->validate($this->value, ['checkDns' => $this->checkDns]);
73 }
74}
75
76/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
validatorCall()
custom validator call hook
setDefaults()
collects initial values across subclasses.
HTML text input type.
Definition Text.php:39
Classes for HTML input-elements.
Definition Address.php:9