ValidateType Interface Reference

Detailed Description

ValidateType defines the interface for all validator classes.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 18 of file ValidateType.php.

+ Inheritance diagram for ValidateType:

Public Member Functions

 validate ($value, $options=null, $context=null)
 

Member Function Documentation

◆ validate()

validate (   $value,
  $options = null,
  $context = null 
)

Validate a given value.

The options format is type specific.

Parameters
$valueThe value to validate
$optionsOptional implementation specific options passed as an associative array
$contextAn associative array describing the validation context (optional)
Returns
Boolean

Implemented in Filter, Image, Date, Unique, RegExp, and Required.