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