PHP Класс Tdt\Core\Repositories\BaseDefinitionRepository

Автор: Jan Vansteenlandt ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$error_messages
$model

Открытые методы

Метод Описание
delete ( $model_id )
getAll ( )
getAllParameters ( )
getById ( $model_id )
getCreateParameters ( )
getValidator ( array $input )
store ( array $input )
update ( $model_id, array $input )

Защищенные методы

Метод Описание
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

Описание методов

delete() публичный Метод

public delete ( $model_id )

getAll() публичный Метод

public getAll ( )

getAllParameters() публичный Метод

public getAllParameters ( )

getById() публичный Метод

public getById ( $model_id )

getCreateParameters() публичный Метод

public getCreateParameters ( )

getValidator() публичный Метод

public getValidator ( array $input )
$input array

patchInput() защищенный Метод

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
Результат array model

processInput() защищенный Метод

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

store() публичный Метод

public store ( array $input )
$input array

update() публичный Метод

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

Описание свойств

$error_messages защищенное свойство

protected $error_messages

$model защищенное свойство

protected $model