PHP Class Tdt\Core\Repositories\BaseDefinitionRepository

Author: Jan Vansteenlandt ([email protected])
Mostrar archivo Open project: tdt/core

Protected Properties

Property Type Description
$error_messages
$model

Public Methods

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

Protected Methods

Method 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 method

public delete ( $model_id )

getAll() public method

public getAll ( )

getAllParameters() public method

public getAllParameters ( )

getById() public method

public getById ( $model_id )

getCreateParameters() public method

public getCreateParameters ( )

getValidator() public method

public getValidator ( array $input )
$input array

patchInput() protected method

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
return array model

processInput() protected method

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

store() public method

public store ( array $input )
$input array

update() public method

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

Property Details

$error_messages protected_oe property

protected $error_messages

$model protected_oe property

protected $model