Validators/Tel.php
Go to the documentation of this file.
1<?php
7
11class 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}
customizable validator for input elements
Definition RegEx.php:12
default validator for tel input elements
getPatternAttribute()
returns HTML5 pattern attribute
__construct($log=null)
tel valdiator class constructor
Validators for HTML input-elements.