depage-forms
v1.4.1
html forms made easy
Loading...
Searching...
No Matches
Validators/Tel.php
Go to the documentation of this file.
1
<?php
2
7
8
namespace
Depage\HtmlForm\Validators;
9
13
class
Tel
extends
RegEx
14
{
23
public
function
__construct
(
$log
=
null
)
24
{
25
parent::__construct(
$log
);
26
27
$this->regEx =
'/^[0-9\/\(\)\+\-\. ]*$/'
;
28
}
29
38
public
function
getPatternAttribute
()
39
{
40
return
''
;
41
}
42
}
Depage\HtmlForm\Validators\RegEx
customizable validator for input elements
Definition
RegEx.php:14
Depage\HtmlForm\Validators\Tel
default validator for tel input elements
Definition
Validators/Tel.php:14
Depage\HtmlForm\Validators\Tel\getPatternAttribute
getPatternAttribute()
returns HTML5 pattern attribute
Definition
Validators/Tel.php:38
Depage\HtmlForm\Validators\Tel\__construct
__construct($log=null)
tel valdiator class constructor
Definition
Validators/Tel.php:23
Depage\HtmlForm\Validators\Validator\$log
$log
log object
Definition
Validator.php:20
Validators
Tel.php
Generated on
for depage-forms by
doxygen
1.14.0
For an overview of all docs, go to
docs.depage.net