abstract classe RequestValidation (Voir la source)

Méthodes

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

Détails

mixed __construct()

TodoValidation constructor.

Valeur de retour

mixed

Exceptions

protected array rules()

The rules list

Valeur de retour

array

protected array keys()

The allowed validation key

Valeur de retour

array

protected bool authorize()

The define the user authorization level

Valeur de retour

bool

protected array messages()

The define the user custom message

Valeur de retour

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

Valeur de retour

bool

protected Validate getValidationInstance()

Get the validator instance

Valeur de retour

Validate

protected string getMessage()

Get the message of the last error

Valeur de retour

string

protected array getMessages()

Get all errors messages

Valeur de retour

array

protected array getValidationData()

Get validation data

Valeur de retour

array

protected Request getRequest()

Get the current request

Valeur de retour

Request

protected throwError()

Throws an exception

Exceptions

ValidationException;

Request __call(string $name, array $arguments)

__call

Paramètres

string $name
array $arguments

Valeur de retour

Request

string __get(string $name)

__get

Paramètres

string $name

Valeur de retour

string