PHP 클래스 Locker\Repository\Lrs\EloquentRepository

상속: extends Locker\Repository\Base\EloquentRepository, implements Locker\Repository\Lrs\Repository
파일 보기 프로젝트 열기: learninglocker/learninglocker

보호된 프로퍼티들

프로퍼티 타입 설명
$defaults
$model

공개 메소드들

메소드 설명
changeRole ( $id, $user_id, $role )
destroy ( String $lrs_id, array $opts ) : boolean Destroys the model with the given ID and options.
getLrsMember ( $user_id )
getLrsOwned ( $user_id )
getStatementCount ( $lrs_id = null ) Get a statement count, either for an LRS or for the entire site if no lrs_id passed
index ( array $opts ) : [Model] Gets all of the available models with the options.
removeUser ( $id, $user_id )

보호된 메소드들

메소드 설명
constructStore ( Model $model, array $data, array $opts ) : Model Constructs a store.
constructUpdate ( Model $model, array $data, array $opts ) : Model Constructs a update.
validateData ( array $data ) Validates data.
where ( array $opts ) : Jenssegers\Mongodb\Eloquent\Builder Constructs a query restricted by the given options.

메소드 상세

changeRole() 공개 메소드

public changeRole ( $id, $user_id, $role )

constructStore() 보호된 메소드

Constructs a store.
protected constructStore ( Model $model, array $data, array $opts ) : Model
$model Illuminate\Database\Eloquent\Model Model to be stored.
$data array
$opts array
리턴 Illuminate\Database\Eloquent\Model

constructUpdate() 보호된 메소드

Constructs a update.
protected constructUpdate ( Model $model, array $data, array $opts ) : Model
$model Illuminate\Database\Eloquent\Model Model to be updated.
$data array
$opts array
리턴 Illuminate\Database\Eloquent\Model

destroy() 공개 메소드

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

getLrsMember() 공개 메소드

public getLrsMember ( $user_id )

getLrsOwned() 공개 메소드

public getLrsOwned ( $user_id )

getStatementCount() 공개 메소드

Get a statement count, either for an LRS or for the entire site if no lrs_id passed
public getStatementCount ( $lrs_id = null )

index() 공개 메소드

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

removeUser() 공개 메소드

public removeUser ( $id, $user_id )

validateData() 보호된 메소드

Validates data.
protected validateData ( array $data )
$data array

where() 보호된 메소드

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

프로퍼티 상세

$defaults 보호되어 있는 프로퍼티

protected $defaults

$model 보호되어 있는 프로퍼티

protected $model