docs depage-forms
Validators
Validators/Url.php
Go to the documentation of this file.
1
<?php
7
namespace
Depage\HtmlForm\Validators
;
8
12
class
Url
extends
Validator
13
{
21
public
function
validate
($url, $parameters = array())
22
{
23
return
(
bool
) filter_var($url, FILTER_VALIDATE_URL);
24
}
25
}
Depage\HtmlForm\Validators\Url
default validator for url input elements
Definition
Validators/Url.php:13
Depage\HtmlForm\Validators\Url\validate
validate($url, $parameters=array())
url validator
Definition
Validators/Url.php:21
Depage\HtmlForm\Validators\Validator
parent validator class
Definition
Validator.php:15
Depage\HtmlForm\Validators
Validators for HTML input-elements.