HttpInput
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
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.
in Input at line 49
array
getExtensions()
Returns an array of validator extensions.
in Input at line 57
addConditionalRules(Validator $validator)
Adds conditional rules to the validator.
in Input at line 65
string|null
getErrorMessage()
Returns the error message.
at line 52
__construct(Request $request, URLBuilder $urlBuilder)
Constructor.
at line 62
array
getInput()
Returns the input to validate.
at line 70
bool
shouldRedirect()
Should we redirect the client if possible?
at line 78
string
getRedirectUrl()
Returns the redirect URL.
at line 86
bool
shouldIncludeOldInput()
Should the old input be included?
at line 94
array
getOldInput()
Returns the old input.