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

Abstract class for validators. More...

+ Inheritance diagram for Validator:

Public Member Functions

 validate_ ($value)
 
 setValidationParameters ($member, $params, $severity='warning', $message=null)
 
 getMember ()
 
 setMember ($member)
 
 getParameters ()
 {}
 
 asUI ()
 
- Public Member Functions inherited from ValidatorInterface
 validate ($value)
 

Protected Member Functions

 setParams (array $params)
 
 mergeMessages ()
 
 _getMessage ()
 

Protected Attributes

 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Detailed Description

Abstract class for validators.

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

Definition at line 11 of file Validator.php.

Member Function Documentation

◆ _getMessage()

_getMessage ( )
protected

Reimplemented in ValidatorMultiple.

Definition at line 81 of file Validator.php.

◆ asUI()

◆ getMember()

getMember ( )
Returns
mixed

Definition at line 48 of file Validator.php.

◆ getParameters()

◆ mergeMessages()

mergeMessages ( )
protected
Returns
array|string

Reimplemented in ValidatorMultiple.

Definition at line 73 of file Validator.php.

◆ setMember()

setMember (   $member)
Parameters
mixed$member

Definition at line 56 of file Validator.php.

◆ setParams()

setParams ( array  $params)
protected

Reimplemented in IdValidator, and UrlValidator.

Definition at line 38 of file Validator.php.

◆ setValidationParameters()

setValidationParameters (   $member,
  $params,
  $severity = 'warning',
  $message = null 
)

Definition at line 31 of file Validator.php.

◆ validate_()

validate_ (   $value)
Parameters
mixed$value
Returns
\Ubiquity\contents\validation\validators\ConstraintViolation|boolean

Definition at line 23 of file Validator.php.

Field Documentation

◆ $member

$member
protected

Definition at line 14 of file Validator.php.

◆ $message

$message
protected

Definition at line 13 of file Validator.php.

◆ $modifiedMessage

$modifiedMessage
protected

Definition at line 12 of file Validator.php.

◆ $severity

$severity
protected

Definition at line 16 of file Validator.php.

◆ $value

$value
protected

Definition at line 15 of file Validator.php.


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