PHP 클래스 Isswp101\Persimmon\Model

상속: implements Isswp101\Persimmon\Contracts\Arrayable, implements Isswp101\Persimmon\Contracts\Jsonable, implements Isswp101\Persimmon\Contracts\Stringable, implements JsonSerializabl\JsonSerializable, use trait Isswp101\Persimmon\Traits\Presentable, use trait Isswp101\Persimmon\Traits\Eventable, use trait Isswp101\Persimmon\Traits\Mergeable, use trait Isswp101\Persimmon\Traits\Idable, use trait Isswp101\Persimmon\Traits\Userable, use trait Isswp101\Persimmon\Traits\Timestampable, use trait Isswp101\Persimmon\Traits\Fillable, use trait Isswp101\Persimmon\Traits\Cacheable
파일 보기 프로젝트 열기: isswp101/elasticsearch-eloquent 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_dal Isswp101\Persimmon\DAL\IDAL
$_exist boolean

공개 메소드들

메소드 설명
__clone ( ) Clone object.
__construct ( Isswp101\Persimmon\DAL\IDAL $dal, array $attributes = [] ) Create a new instance.
create ( array $attributes = [] ) : static Save a new model and return the instance.
createInstance ( ) : static Create a new instance.
delete ( ) : boolean Delete the model.
destroy ( mixed $id ) Destroy the models by the given id.
find ( mixed $id, array $columns = ['*'], array $options = [] ) : static Find a model by its primary key.
findOrFail ( mixed $id, array $columns = ['*'], integer $parent = null ) : static Find a model by its primary key or throw an exception.
findOrNew ( mixed $id ) : static Find a model by its primary key or return new model.
jsonSerialize ( )
save ( array $columns = ['*'] ) : boolean Save the model.
toArray ( )

메소드 상세

__clone() 공개 메소드

Clone object.
public __clone ( )

__construct() 공개 메소드

Create a new instance.
public __construct ( Isswp101\Persimmon\DAL\IDAL $dal, array $attributes = [] )
$dal Isswp101\Persimmon\DAL\IDAL
$attributes array

create() 공개 정적인 메소드

Save a new model and return the instance.
public static create ( array $attributes = [] ) : static
$attributes array
리턴 static

createInstance() 공개 정적인 메소드

Create a new instance.
public static createInstance ( ) : static
리턴 static

delete() 공개 메소드

Delete the model.
public delete ( ) : boolean
리턴 boolean

destroy() 공개 정적인 메소드

Destroy the models by the given id.
public static destroy ( mixed $id )
$id mixed

find() 공개 정적인 메소드

Find a model by its primary key.
public static find ( mixed $id, array $columns = ['*'], array $options = [] ) : static
$id mixed
$columns array
$options array
리턴 static

findOrFail() 공개 정적인 메소드

Find a model by its primary key or throw an exception.
public static findOrFail ( mixed $id, array $columns = ['*'], integer $parent = null ) : static
$id mixed
$columns array
$parent integer
리턴 static

findOrNew() 공개 정적인 메소드

Find a model by its primary key or return new model.
public static findOrNew ( mixed $id ) : static
$id mixed
리턴 static

jsonSerialize() 공개 메소드

public jsonSerialize ( )

save() 공개 메소드

Save the model.
public save ( array $columns = ['*'] ) : boolean
$columns array
리턴 boolean

toArray() 공개 메소드

public toArray ( )

프로퍼티 상세

$_dal 공개적으로 프로퍼티

public IDAL,Isswp101\Persimmon\DAL $_dal
리턴 Isswp101\Persimmon\DAL\IDAL

$_exist 공개적으로 프로퍼티

public bool $_exist
리턴 boolean