class Rid extends AbstractValidator (View source)

Methods

mixed
check(mixed $value, boolean $silent = false)

Cleans and returns the $value.

clean($rid)

Internallly cleans and return the $value.

fail(ValidationException $e, $value, $silent = false)

Makes the validator fail: if silent, null is returned, otherwise an exception is raised.

Details

mixed check(mixed $value, boolean $silent = false)

Cleans and returns the $value.

If it is invalid, the validator fails.

Parameters

mixed $value
boolean $silent

Return Value

mixed

protected clean($rid)

Internallly cleans and return the $value.

Parameters

$rid

protected fail(ValidationException $e, $value, $silent = false)

Makes the validator fail: if silent, null is returned, otherwise an exception is raised.

Parameters

ValidationException $e
$value
$silent

Exceptions

ValidationException