elements/email.php
Go to the documentation of this file.
1 <?php
10 namespace depage\htmlform\elements;
11 
37 class email extends text
38 {
48  protected function setDefaults()
49  {
50  parent::setDefaults();
51 
52  $this->defaults['errorMessage'] = _('Please enter a valid e-mail address');
53 
54  // @todo add option to test mail domain name (dns)
55  }
56 }
57 
58 /* vim:set ft=php sw=4 sts=4 fdm=marker et : */
setDefaults()
collects initial values across subclasses.
HTML text input type.
Definition: text.php:38
HTML email input type.