Detailed Description

Validator is is the single entry point for validation.

It chooses the configured validateType based on the validateTypeDesc parameter from the configuration section 'validators'.

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

Definition at line 24 of file Validator.php.

Static Public Member Functions

static validate ($value, $validateTypeDesc, Message $message)
 

Static Protected Member Functions

static getValidateType ($validateTypeName)
 

Member Function Documentation

static validate (   $value,
  $validateTypeDesc,
Message  $message 
)
static

Validate the given value against the given validateType description.

Parameters
$valueThe value to validate
$validateTypeDescA string in the form validateType:options, where validateType is a key in the configuration section 'validators' and options is a JSON encoded string as used in the 'restrictions_match' definition
$messageThe Message instance used to provide translations
Returns
Boolean

Definition at line 35 of file Validator.php.

static getValidateType (   $validateTypeName)
staticprotected

Get the ValidateType instance for the given name.

Parameters
$validateTypeNameThe validate type's name
Returns
ValidateType instance

Definition at line 54 of file Validator.php.