Methods

Returns the error type.

getError() : Integer

access public

Returns

IntegerError type.

Returns the error message.

getMessage() : String

access public

Returns

StringError message.

Returns the eventually transformed value.

getValue() : Mixed

access public

Returns

MixedTransformed value.

Returns an object reference of the given type.

set(Integer $iType, Mixed $mTransValue, String $sMessage) : Object

static
access public

Parameters

$iType

Integer

iType Error type.

$mTransValue

Mixed

mTransValue Original and eventually transformed value.

$sMessage

String

sMessage Error message.

Returns

ObjectNew validation error object.

Constructor.

__construct(Integer $iType, String $sMessage, Mixed $mTransValue) 

access private

Parameters

$iType

Integer

iType Error type (see constants).

$sMessage

String

sMessage Error message.

$mTransValue

Mixed

mTransValue Original and eventually transformed value.

 Properties

 

$iType

$iType 

 

$mTransValue

$mTransValue 

 

$sMessage

$sMessage 

 Constants

 

NOT_FLOAT

NOT_FLOAT 

 

NOT_INTEGER

NOT_INTEGER 

 

NOT_SCALAR

NOT_SCALAR 

 

TOO_BIG

TOO_BIG 

 

TOO_LONG

TOO_LONG 

 

TOO_SHORT

TOO_SHORT 

 

TOO_SMALL

TOO_SMALL 

 

WRONG_PATTERN

WRONG_PATTERN