docs depage-forms
Elements
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 : */
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:39
Depage\HtmlForm\Elements\Url
HTML url input-type.
Definition
Elements/Url.php:37
Depage\HtmlForm\Elements\Url\setDefaults
setDefaults()
collects initial values across subclasses
Definition
Elements/Url.php:47
Depage\HtmlForm\Elements
Classes for HTML input-elements.
Definition
Address.php:9