Class ValidationSet
A set of validation rules to be checked at the same input set.
- Flikore\Validator\ValidationSet implements Flikore\Validator\Interfaces\IValidator
Namespace: Flikore\Validator
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.1
Located at Flikore/Validator/ValidationSet.php
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.1
Located at Flikore/Validator/ValidationSet.php
Methods summary
public
|
|
public
|
#
addRule( string $name,
Adds a new rule for a given property or key name. |
public
|
#
addRules( string $name,
Adds a new set rules for a given property or key name. |
public
array
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
|
#
addKeyValue( string $key, string $value )
Adds a new key-value pair to be replaced by the templating engine. This does not check if it's replacing a specific validator value. |
protected
mixed
|
|
protected
|
#
getRealValidator(
Generates a validator object based on a ValidationValue. |
protected
|
|
protected
|
#
updateSingleKeyValue(
Updates a single validator to have the same key-values added to the set. |
protected
|
Magic methods summary
Properties summary
protected
Validator[][]
|
$validators |
#
An array of validation objects. |
protected
array
|
$values |
#
Stores the key-value pairs for the inner validators. |