tel Class Reference

Detailed Description

default validator for tel input elements

Definition at line 11 of file validators/tel.php.

Inheritance diagram for tel:

Public Member Functions

 __construct ($log=null)
 tel valdiator class constructor More...
 getPatternAttribute ()
 returns HTML5 pattern attribute More...
- Public Member Functions inherited from regEx
 validate ($value, $parameters=array())
 validates value with regular expression More...
 setRegEx ($regEx)
 sets the validators regular expression More...
- Public Member Functions inherited from validator
 __construct ($log=null)
 validator constructor More...
 validate ($value, $parameters=array())
 default validator. More...
 getPatternAttribute ()
 returns validators' regular expression as HTML5 pattern attribute More...

Additional Inherited Members

- Static Public Member Functions inherited from validator
static factory ($argument, $log=null)
 valdiator object factory More...
static isValid ($input)
- Protected Member Functions inherited from validator
 log ($argument, $type)
 error logging method More...
- Protected Attributes inherited from regEx
 $regEx = "//"
 regular expression More...
- Protected Attributes inherited from validator
 log object More...

Constructor & Destructor Documentation

__construct (   $log = null)

tel valdiator class constructor

Sets regular expression for telephone number validation.

object$logerror logger

Definition at line 21 of file validators/tel.php.

Member Function Documentation

getPatternAttribute ( )

returns HTML5 pattern attribute

Overrides parent to return empty string (tel input element doesn't require pattern attribute for HTML5 validation).

string empty attribute string

Definition at line 36 of file validators/tel.php.

The documentation for this class was generated from the following file: