PHP Class Learner\Services\Forms\AbstractFormService

Afficher le fichier Open project: RryLee/learner.video

Protected Properties

Свойство Type Description
$attributes array The Model's attributes aliases.
$inputData array The input data of the current request.
$messages array Array of custom validation messages.
$rules array The validation rules to validate the input data against.
$validator Illuminate\Validation\Validator The validator instance.

Méthodes publiques

Méthode Description
__construct ( ) AbstractForm constructor.
getAttributes ( ) : array Get the custom attributes aliases.
getErrors ( ) : Illuminate\Support\MessageBag Get the validation errors off of the Validator instance.
getInputData ( ) : array Get the prepared input data.
isValid ( ) : boolean Check whether the input data is valid.

Méthodes protégées

Méthode Description
getMessages ( ) : array Get the custom validation messages.
getRules ( ) : array Get the prepared validation rules.

Method Details

__construct() public méthode

AbstractForm constructor.
public __construct ( )

getAttributes() public méthode

Get the custom attributes aliases.
public getAttributes ( ) : array
Résultat array

getErrors() public méthode

Get the validation errors off of the Validator instance.
public getErrors ( ) : Illuminate\Support\MessageBag
Résultat Illuminate\Support\MessageBag

getInputData() public méthode

Get the prepared input data.
public getInputData ( ) : array
Résultat array

getMessages() protected méthode

Get the custom validation messages.
protected getMessages ( ) : array
Résultat array

getRules() protected méthode

Get the prepared validation rules.
protected getRules ( ) : array
Résultat array

isValid() public méthode

Check whether the input data is valid.
public isValid ( ) : boolean
Résultat boolean

Property Details

$attributes protected_oe property

The Model's attributes aliases.
protected array $attributes
Résultat array

$inputData protected_oe property

The input data of the current request.
protected array $inputData
Résultat array

$messages protected_oe property

Array of custom validation messages.
protected array $messages
Résultat array

$rules protected_oe property

The validation rules to validate the input data against.
protected array $rules
Résultat array

$validator protected_oe property

The validator instance.
protected Validator,Illuminate\Validation $validator
Résultat Illuminate\Validation\Validator