docs depage-forms
Validators
Validators/Tel.php
Go to the documentation of this file.
1
<?php
6
namespace
Depage\HtmlForm\Validators
;
7
11
class
Tel
extends
RegEx
12
{
21
public
function
__construct
(
$log
=
null
)
22
{
23
parent::__construct(
$log
);
24
25
$this->regEx =
'/^[0-9\/\(\)\+\-\. ]*$/'
;
26
}
27
36
public
function
getPatternAttribute
()
37
{
38
return
''
;
39
}
40
}
Depage\HtmlForm\Validators\RegEx
customizable validator for input elements
Definition
RegEx.php:12
Depage\HtmlForm\Validators\Tel
default validator for tel input elements
Definition
Validators/Tel.php:12
Depage\HtmlForm\Validators\Tel\getPatternAttribute
getPatternAttribute()
returns HTML5 pattern attribute
Definition
Validators/Tel.php:36
Depage\HtmlForm\Validators\Tel\__construct
__construct($log=null)
tel valdiator class constructor
Definition
Validators/Tel.php:21
Depage\HtmlForm\Validators\Validator\$log
$log
log object
Definition
Validator.php:19
Depage\HtmlForm\Validators
Validators for HTML input-elements.