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 43
array
getRules()
Returns the validation rules.
in Input at line 51
array
getExtensions()
Returns an array of validator extensions.
in Input at line 59
addConditionalRules(Validator $validator)
Adds conditional rules to the validator.
in Input at line 67
string|null
getErrorMessage()
Returns the error message.
at line 54
__construct(Request $request, URLBuilder $urlBuilder)
Constructor.
at line 64
array
getInput()
Returns the input to validate.
at line 72
bool
shouldRedirect()
Should we redirect the client if possible?
at line 80
string
getRedirectUrl()
Returns the redirect URL.
at line 88
bool
shouldIncludeOldInput()
Should the old input be included?
at line 96
array
getOldInput()
Returns the old input.