url Class Reference

Detailed Description

default validator for url input elements

Definition at line 12 of file validators/url.php.

Inheritance diagram for url:

Public Member Functions

 validate ($url, $parameters=array())
 url validator 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 validator
 $log
 log object More...
 

Member Function Documentation

validate (   $url,
  $parameters = array() 
)

url validator

Parameters
string$urlurl to be validated
array$parametersvalidation parameters
Returns
bool validation result

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


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