abstract class HttpInput extends Input implements HttpInputInterface

HTTP input.

Properties

protected array $rules Validation rules. from Input
protected string|null $errorMessage Error message. from Input
protected array $extensions Validation extensions. from Input
protected Request $request Request.
protected URLBuilder $urlBuilder URL builder.
protected bool $shouldRedirect Should we redirect the client if possible?
protected bool $shouldIncludeOldInput Should the old input be included?

Methods

array
getRules()

Returns the validation rules.

from Input
array
getExtensions()

Returns an array of validator extensions.

from Input
addConditionalRules(Validator $validator)

Adds conditional rules to the validator.

from Input
string|null
getErrorMessage()

Returns the error message.

from Input
__construct(Request $request, URLBuilder $urlBuilder)

Constructor.

array
getInput()

Returns the input to validate.

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 Input at line 41
array getRules()

Returns the validation rules.

Return Value

array

in Input at line 49
array getExtensions()

Returns an array of validator extensions.

Return Value

array

in Input at line 57
addConditionalRules(Validator $validator)

Adds conditional rules to the validator.

Parameters

Validator $validator Validator

in Input at line 65
string|null getErrorMessage()

Returns the error message.

Return Value

string|null

at line 52
__construct(Request $request, URLBuilder $urlBuilder)

Constructor.

Parameters

Request $request Request
URLBuilder $urlBuilder URL builder

at line 62
array getInput()

Returns the input to validate.

Return Value

array

at line 70
bool shouldRedirect()

Should we redirect the client if possible?

Return Value

bool

at line 78
string getRedirectUrl()

Returns the redirect URL.

Return Value

string

at line 86
bool shouldIncludeOldInput()

Should the old input be included?

Return Value

bool

at line 94
array getOldInput()

Returns the old input.

Return Value

array