interface HttpInputInterface implements InputInterface

HTTP input interface.

Methods

array
getInput()

Returns the input to validate.

array
getRules()

Returns the validation rules.

array
getExtensions()

Returns an array of validator extensions.

addConditionalRules(Validator $validator)

Adds conditional rules to the validator.

string|null
getErrorMessage()

Returns the error message.

bool
shouldRedirect()

Should we redirect the client if possible?

string
getRedirectUrl()

Returns the redirect URL.

bool
shouldIncludeOldInput()

Should the old input be included?

array
getOldInput()

Returns the old input.

Details

in InputInterface at line 22
array getInput()

Returns the input to validate.

Return Value

array

in InputInterface at line 29
array getRules()

Returns the validation rules.

Return Value

array

in InputInterface at line 36
array getExtensions()

Returns an array of validator extensions.

Return Value

array

in InputInterface at line 43
addConditionalRules(Validator $validator)

Adds conditional rules to the validator.

Parameters

Validator $validator Validator

in InputInterface at line 50
string|null getErrorMessage()

Returns the error message.

Return Value

string|null

at line 20
bool shouldRedirect()

Should we redirect the client if possible?

Return Value

bool

at line 27
string getRedirectUrl()

Returns the redirect URL.

Return Value

string

at line 34
bool shouldIncludeOldInput()

Should the old input be included?

Return Value

bool

at line 41
array getOldInput()

Returns the old input.

Return Value

array