PHP 클래스 Locker\Repository\Base\EloquentRepository

상속: implements Locker\Repository\Base\Repository
파일 보기 프로젝트 열기: learninglocker/learninglocker 1 사용 예제들

공개 메소드들

메소드 설명
destroy ( String $id, array $opts ) : boolean Destroys the model with the given ID and options.
index ( array $opts ) : [Model] Gets all of the available models with the options.
show ( String $id, array $opts ) : Model Gets the model with the given ID and options.
store ( array $data, array $opts ) : Model Creates a new model.
update ( String $id, array $data, array $opts ) : Model Updates an existing model.

보호된 메소드들

메소드 설명
constructStore ( Model $model, array $data, array $opts )
constructUpdate ( Model $model, array $data, array $opts )
fire ( boolean $allow, String $event, array $opts, array $extra ) Fires an event.
format ( Model $model ) : Model Formats the model(s) before returning.
where ( array $opts ) : Jenssegers\Mongodb\Eloquent\Builder Constructs a query restricted by the given options.

메소드 상세

constructStore() 추상적인 보호된 메소드

abstract protected constructStore ( Model $model, array $data, array $opts )
$model Illuminate\Database\Eloquent\Model
$data array
$opts array

constructUpdate() 추상적인 보호된 메소드

abstract protected constructUpdate ( Model $model, array $data, array $opts )
$model Illuminate\Database\Eloquent\Model
$data array
$opts array

destroy() 공개 메소드

Destroys the model with the given ID and options.
public destroy ( String $id, array $opts ) : boolean
$id String ID to match.
$opts array
리턴 boolean

fire() 보호된 메소드

Fires an event.
protected fire ( boolean $allow, String $event, array $opts, array $extra )
$allow boolean Determines if the event is allowed to fire.
$event String Name of the event to fire.
$opts array
$extra array

format() 보호된 메소드

Formats the model(s) before returning.
protected format ( Model $model ) : Model
$model Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model

index() 공개 메소드

Gets all of the available models with the options.
public index ( array $opts ) : [Model]
$opts array
리턴 [Model]

show() 공개 메소드

Gets the model with the given ID and options.
public show ( String $id, array $opts ) : Model
$id String ID to match.
$opts array
리턴 Illuminate\Database\Eloquent\Model

store() 공개 메소드

Creates a new model.
public store ( array $data, array $opts ) : Model
$data array
$opts array
리턴 Illuminate\Database\Eloquent\Model

update() 공개 메소드

Updates an existing model.
public update ( String $id, array $data, array $opts ) : Model
$id String ID to match.
$data array
$opts array
리턴 Illuminate\Database\Eloquent\Model

where() 보호된 메소드

Constructs a query restricted by the given options.
protected where ( array $opts ) : Jenssegers\Mongodb\Eloquent\Builder
$opts array
리턴 Jenssegers\Mongodb\Eloquent\Builder