Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
UrlValidator Class Reference

Validates an URL Usage @validator("url","constraints"=>["relative"=>false,"protocols"=>["http","https"]]) Inspired from Bernhard Schussek Symfony UrlValidator. More...

+ Inheritance diagram for UrlValidator:

Public Member Functions

 __construct ()
 
 asUI ()
 {{}
See also
\Ubiquity\contents\validation\validators\ValidatorasUI()
}
 
- Public Member Functions inherited from RegexValidator
 validate ($value)
 
 getParameters ()
 {{}
See also
\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()
}
 
- Public Member Functions inherited from Validator
 validate_ ($value)
 
 setValidationParameters ($member, $params, $severity='warning', $message=null)
 
 getMember ()
 
 setMember ($member)
 

Protected Member Functions

 setParams (array $params)
 
- Protected Member Functions inherited from Validator
 mergeMessages ()
 
 _getMessage ()
 

Protected Attributes

 $protocols =["http","https","ftp"]
 
 $relative =false
 
- Protected Attributes inherited from RegexValidator
 $ref
 
 $match
 
- Protected Attributes inherited from ValidatorHasNotNull
 $notNull
 
- Protected Attributes inherited from Validator
 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Detailed Description

Validates an URL Usage @validator("url","constraints"=>["relative"=>false,"protocols"=>["http","https"]]) Inspired from Bernhard Schussek Symfony UrlValidator.

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.0

Definition at line 12 of file UrlValidator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Reimplemented from RegexValidator.

Definition at line 17 of file UrlValidator.php.

Member Function Documentation

◆ asUI()

asUI ( )

{{}

See also
\Ubiquity\contents\validation\validators\ValidatorasUI()
}

See also
\Ubiquity\contents\validation\validators\Validator::asUI()

Reimplemented from RegexValidator.

Definition at line 52 of file UrlValidator.php.

◆ setParams()

setParams ( array  $params)
protected

See also
\Ubiquity\contents\validation\validators\Validator::setParams()

Reimplemented from Validator.

Definition at line 42 of file UrlValidator.php.

Field Documentation

◆ $protocols

$protocols =["http","https","ftp"]
protected

Definition at line 14 of file UrlValidator.php.

◆ $relative

$relative =false
protected

Definition at line 15 of file UrlValidator.php.


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