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
8namespace Depage\HtmlForm\Validators;
9
13class 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}
customizable validator for input elements
Definition RegEx.php:14
default validator for tel input elements
getPatternAttribute()
returns HTML5 pattern attribute
__construct($log=null)
tel valdiator class constructor