PHP 클래스 Domain\Repositories\BaseRepository

저자: Leandro Henrique ([email protected])
상속: use trait Domain\Repositories\Traits\DeleteTrait, use trait Domain\Repositories\Traits\GetsTrait, use trait Domain\Repositories\Traits\RestoreTrait, use trait Domain\Repositories\Traits\StoreTrait, use trait Domain\Repositories\Traits\UpdateTrait
파일 보기 프로젝트 열기: resultsystems/school

보호된 프로퍼티들

프로퍼티 타입 설명
$model

공개 메소드들

메소드 설명
__construct ( Illuminate\Container\Container $app )
count ( ) : integer Count.
getModel ( ) : Model Get model.
makeModel ( ) : Model makeModel.
max ( string $field = 'id' ) : integer Max.
min ( string $field = 'id' ) : integer Min.
model ( )
onlyMe ( $field = 'user_id', $owner_id = null ) me.
onlyTrashed ( ) Only trashed.
sum ( string $field = 'id' ) : integer Sum.
withTrashed ( ) Add trashed.
withoutTrashed ( ) Without trashed.

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Container\Container $app )
$app Illuminate\Container\Container

count() 공개 메소드

Count.
public count ( ) : integer
리턴 integer

getModel() 공개 메소드

Get model.
public getModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

makeModel() 공개 메소드

makeModel.
public makeModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

max() 공개 메소드

Max.
public max ( string $field = 'id' ) : integer
$field string
리턴 integer

min() 공개 메소드

Min.
public min ( string $field = 'id' ) : integer
$field string
리턴 integer

model() 추상적인 공개 메소드

abstract public model ( )

onlyMe() 공개 메소드

me.
public onlyMe ( $field = 'user_id', $owner_id = null )

onlyTrashed() 공개 메소드

Only trashed.
public onlyTrashed ( )

sum() 공개 메소드

Sum.
public sum ( string $field = 'id' ) : integer
$field string
리턴 integer

withTrashed() 공개 메소드

Add trashed.
public withTrashed ( )

withoutTrashed() 공개 메소드

Without trashed.
public withoutTrashed ( )

프로퍼티 상세

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

protected $model