RequestValidation
abstract class RequestValidation (View source)
Methods
TodoValidation constructor.
The rules list
The allowed validation key
The define the user authorization level
The define the user custom message
When the user does not have the authorization to launch this request This is hook the method that can watch them for make an action
When user have not authorize to launch a request This is hook the method that can watch them for make an action This method permet to custom fail exception
Check if the query
Get the validator instance
Get the message of the last error
Get all errors messages
Get validation data
Get the current request
Throws an exception
__get
Details
mixed
__construct()
TodoValidation constructor.
protected array
rules()
The rules list
protected array
keys()
The allowed validation key
protected bool
authorize()
The define the user authorization level
protected array
messages()
The define the user custom message
protected
authorizationFailAction()
When the user does not have the authorization to launch this request This is hook the method that can watch them for make an action
protected
validationFailAction()
When user have not authorize to launch a request This is hook the method that can watch them for make an action This method permet to custom fail exception
protected bool
fails()
Check if the query
protected Validate
getValidationInstance()
Get the validator instance
protected string
getMessage()
Get the message of the last error
protected array
getMessages()
Get all errors messages
protected array
getValidationData()
Get validation data
protected Request
getRequest()
Get the current request
protected
throwError()
Throws an exception
Request
__call(string $name, array $arguments)
__call
string
__get(string $name)
__get