abstract class RequestValidation (View source)

Methods

mixed
__construct()

TodoValidation constructor.

array
rules()

The rules list

array
keys()

The allowed validation key

bool
authorize()

The define the user authorization level

array
messages()

The define the user custom message

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

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

bool
fails()

Check if the query

getValidationInstance()

Get the validator instance

string
getMessage()

Get the message of the last error

array
getMessages()

Get all errors messages

array
getValidationData()

Get validation data

getRequest()

Get the current request

throwError()

Throws an exception

__call(string $name, array $arguments)

__call

string
__get(string $name)

__get

Details

mixed __construct()

TodoValidation constructor.

Return Value

mixed

Exceptions

protected array rules()

The rules list

Return Value

array

protected array keys()

The allowed validation key

Return Value

array

protected bool authorize()

The define the user authorization level

Return Value

bool

protected array messages()

The define the user custom message

Return Value

array

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

Return Value

bool

protected Validate getValidationInstance()

Get the validator instance

Return Value

Validate

protected string getMessage()

Get the message of the last error

Return Value

string

protected array getMessages()

Get all errors messages

Return Value

array

protected array getValidationData()

Get validation data

Return Value

array

protected Request getRequest()

Get the current request

Return Value

Request

protected throwError()

Throws an exception

Exceptions

ValidationException;

Request __call(string $name, array $arguments)

__call

Parameters

string $name
array $arguments

Return Value

Request

string __get(string $name)

__get

Parameters

string $name

Return Value

string