PHP Class Tdt\Core\Repositories\BaseDefinitionRepository

Author: Jan Vansteenlandt ([email protected])
Afficher le fichier Open project: tdt/core

Protected Properties

Свойство Type Description
$error_messages
$model

Méthodes publiques

Méthode Description
delete ( $model_id )
getAll ( )
getAllParameters ( )
getById ( $model_id )
getCreateParameters ( )
getValidator ( array $input )
store ( array $input )
update ( $model_id, array $input )

Méthodes protégées

Méthode Description
patchInput ( $model_id, array $input ) : array Patch the input given with the existing properties of a model and return the resulting array
processInput ( array $input ) Pre-process the input by assigning default values for empty properties

Method Details

delete() public méthode

public delete ( $model_id )

getAll() public méthode

public getAll ( )

getAllParameters() public méthode

public getAllParameters ( )

getById() public méthode

public getById ( $model_id )

getCreateParameters() public méthode

public getCreateParameters ( )

getValidator() public méthode

public getValidator ( array $input )
$input array

patchInput() protected méthode

Patch the input given with the existing properties of a model and return the resulting array
protected patchInput ( $model_id, array $input ) : array
$input array
Résultat array model

processInput() protected méthode

Pre-process the input by assigning default values for empty properties
protected processInput ( array $input )
$input array

store() public méthode

public store ( array $input )
$input array

update() public méthode

public update ( $model_id, array $input )
$input array

Property Details

$error_messages protected_oe property

protected $error_messages

$model protected_oe property

protected $model