Class ValidationResult
A class that combined as a boolean result with an optional list of error messages. This is used for returning validation results from validators
- Object
-
ValidationResult
Methods summary
public
|
#
__construct( mixed $valid = true, mixed $message = null )
Create a new ValidationResult. By default, it is a successful result. Call $this->error() to record errors. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
combineAnd(
Combine this Validation Result with the ValidationResult given in other. It will be valid if both this and the other result are valid. This object will be modified to contain the new validation information. |
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
defineMethods(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
protected
mixed
|
$isValid |
#
Boolean - is the result valid or not |
protected
array
|
$errorList |
#
Array of errors |