PHP 클래스 Tdt\Core\Repositories\BaseDefinitionRepository

저자: Jan Vansteenlandt ([email protected])
파일 보기 프로젝트 열기: tdt/core

보호된 프로퍼티들

프로퍼티 타입 설명
$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