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

Check if a value is in a range. More...

+ Inheritance diagram for RangeValidator:

Public Member Functions

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

Protected Attributes

 $min
 
 $max
 
- Protected Attributes inherited from ValidatorHasNotNull
 $notNull
 
- Protected Attributes inherited from Validator
 $modifiedMessage
 
 $message
 
 $member
 
 $value
 
 $severity
 

Additional Inherited Members

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

Detailed Description

Check if a value is in a range.

Usage @validator("range",["min"=>minValue,"max"=>maxValue])

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

Definition at line 16 of file RangeValidator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 20 of file RangeValidator.php.

Member Function Documentation

◆ asUI()

asUI ( )

{}

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

Reimplemented from ValidatorHasNotNull.

Definition at line 46 of file RangeValidator.php.

◆ getParameters()

getParameters ( )

{{}

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

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

Reimplemented from Validator.

Definition at line 37 of file RangeValidator.php.

◆ validate()

validate (   $value)
Parameters
mixed$value
Returns
boolean

Reimplemented from ValidatorHasNotNull.

Definition at line 24 of file RangeValidator.php.

Field Documentation

◆ $max

$max
protected

Definition at line 18 of file RangeValidator.php.

◆ $min

$min
protected

Definition at line 17 of file RangeValidator.php.


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