HttpInput
abstract class HttpInput extends Input
HTTP input.
Properties
protected array | $rules | Validation rules. | from Input |
protected array | $extensions | Validation extensions. | from Input |
protected Request | $request | Request. | |
protected URLBuilder | $urlBuilder | URL builder. | |
protected bool | $shouldRedirect | Should the request be redirected if possible? | |
protected bool | $includeOldInput | Should the old input be included? |
Methods
array
getMeta()
Returns an array of additional metadata for validator exceptions.
array
getInput()
Returns the input to validate.
string|null
getMessage()
Returns the error message.
string|null
getRedirectUrl()
Returns the redirect URL.
array|null
getOldInput()
Returns the old input.
array
buildMeta()
Builds the meta array.
Details
in Input at line 36
array
getRules()
Returns the validation rules.
in Input at line 44
array
getExtensions()
Returns an array of validator extensions.
in Input at line 52
addConditionalRules(Validator $validator)
Adds conditional rules to the validator.
at line 120
array
getMeta()
Returns an array of additional metadata for validator exceptions.
at line 56
__construct(Request $request, URLBuilder $urlBuilder)
Constructor.
at line 66
array
getInput()
Returns the input to validate.
at line 76
protected string|null
getMessage()
Returns the error message.
at line 86
protected string|null
getRedirectUrl()
Returns the redirect URL.
at line 96
protected array|null
getOldInput()
Returns the old input.
at line 106
protected array
buildMeta()
Builds the meta array.