PHP 클래스 Sleimanx2\Plastic\Persistence\EloquentPersistence

파일 보기 프로젝트 열기: sleimanx2/plastic 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Sleimanx2\Plastic\Connection
$model Illuminate\Database\Eloquent\Model

공개 메소드들

메소드 설명
__construct ( Connection $connection ) PersistenceAbstract constructor.
bulkDelete ( array | collection $collection = [] ) : mixed Bulk Delete a collection of Models.
bulkSave ( array | Collection $collection = [] ) : mixed Bulk save a collection Models.
delete ( ) : mixed Delete a model document.
getModel ( ) : Model Get the model to persist.
model ( Model $model ) Set the model to persist.
reindex ( array | Collection $collection = [] ) : mixed Reindex a collection of Models.
save ( ) : mixed Save a model instance.
update ( ) : mixed Update a model document.

비공개 메소드들

메소드 설명
exitIfModelNotSet ( ) Function called when the model value is a required.

메소드 상세

__construct() 공개 메소드

PersistenceAbstract constructor.
public __construct ( Connection $connection )
$connection Sleimanx2\Plastic\Connection

bulkDelete() 공개 메소드

Bulk Delete a collection of Models.
public bulkDelete ( array | collection $collection = [] ) : mixed
$collection array | collection
리턴 mixed

bulkSave() 공개 메소드

Bulk save a collection Models.
public bulkSave ( array | Collection $collection = [] ) : mixed
$collection array | Illuminate\Support\Collection
리턴 mixed

delete() 공개 메소드

Delete a model document.
public delete ( ) : mixed
리턴 mixed

getModel() 공개 메소드

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

model() 공개 메소드

Set the model to persist.
public model ( Model $model )
$model Illuminate\Database\Eloquent\Model

reindex() 공개 메소드

Reindex a collection of Models.
public reindex ( array | Collection $collection = [] ) : mixed
$collection array | Illuminate\Support\Collection
리턴 mixed

save() 공개 메소드

Save a model instance.
public save ( ) : mixed
리턴 mixed

update() 공개 메소드

Update a model document.
public update ( ) : mixed
리턴 mixed

프로퍼티 상세

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

protected Connection,Sleimanx2\Plastic $connection
리턴 Sleimanx2\Plastic\Connection

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

protected Model,Illuminate\Database\Eloquent $model
리턴 Illuminate\Database\Eloquent\Model