API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_URIScheme_tel Class Reference
Inheritance diagram for HTMLPurifier_URIScheme_tel:
Collaboration diagram for HTMLPurifier_URIScheme_tel:

Public Member Functions

 doValidate (&$uri, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_URIScheme
 doValidate (&$uri, $config, $context)
 
 validate (&$uri, $config, $context)
 

Data Fields

 $browsable = false
 
 $may_omit_host = true
 
- Data Fields inherited from HTMLPurifier_URIScheme
 $default_port = null
 
 $browsable = false
 
 $secure = false
 
 $hierarchical = false
 
 $may_omit_host = false
 

Detailed Description

Validates tel (for phone numbers).

The relevant specifications for this protocol are RFC 3966 and RFC 5341, but this class takes a much simpler approach: we normalize phone numbers so that they only include (possibly) a leading plus, and then any number of digits and x'es.

Member Function Documentation

◆ doValidate()

doValidate ( $uri,
  $config,
  $context 
)
Parameters
HTMLPurifier_URI$uri
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool

Reimplemented from HTMLPurifier_URIScheme.

Field Documentation

◆ $browsable

$browsable = false

@type bool

◆ $may_omit_host

$may_omit_host = true

@type bool


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