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 24
array getInput()

Returns the input to validate.

Return Value

array

in InputInterface at line 31
array getRules()

Returns the validation rules.

Return Value

array

in InputInterface at line 38
array getExtensions()

Returns an array of validator extensions.

Return Value

array

in InputInterface at line 45
addConditionalRules(Validator $validator)

Adds conditional rules to the validator.

Parameters

Validator $validator Validator

in InputInterface at line 52
string|null getErrorMessage()

Returns the error message.

Return Value

string|null

at line 22
bool shouldRedirect()

Should we redirect the client if possible?

Return Value

bool

at line 29
string getRedirectUrl()

Returns the redirect URL.

Return Value

string

at line 36
bool shouldIncludeOldInput()

Should the old input be included?

Return Value

bool

at line 43
array getOldInput()

Returns the old input.

Return Value

array