Class ValidationCombo
Combines two or more validator objects into one. This validates with all the inserted validators and stops at the first error, return the message of the validator that went wrong.
- Flikore\Validator\Validator implements Flikore\Validator\Interfaces\IValidator
- Flikore\Validator\ValidationCombo
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.2
Located at Flikore/Validator/ValidationCombo.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.2
Located at Flikore/Validator/ValidationCombo.php
Methods summary
public
|
|
public
|
|
protected
boolean
|
|
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. |
Methods inherited from Flikore\Validator\Validator
applyTemplate()
,
assert()
,
getErrorMessage()
,
isEmpty()
,
setErrorMessage()
,
validate()
Magic methods summary
Properties summary
protected
string
|
$message |
#
The error message for this validator. |
protected
|
$validators |
#
A collection of all validators. |