PHP 트레잇 Xpressengine\User\Repositories\RepositoryTrait

파일 보기 프로젝트 열기: xpressengine/xpressengine

보호된 프로퍼티들

프로퍼티 타입 설명
$model model name. Xpressengine\Database\Eloquent\DynamicModel를 상속받은 class의 이름이어야 한다

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : mixed __call
__construct ( mixed $model ) constructor.
createModel ( ) : DynamicModel Create model instance
delete ( DynamicModel $item ) : boolean | null delete
getModel ( ) : string The name of Category model class
query ( ) : Builder query
setModel ( string $model ) : void Set the name of Category model
update ( DynamicModel $item, array $data = [] ) : DynamicModel update

메소드 상세

__call() 공개 메소드

__call
public __call ( string $method, array $parameters ) : mixed
$method string method name
$parameters array parameters
리턴 mixed

__construct() 공개 메소드

constructor.
public __construct ( mixed $model )
$model mixed model

createModel() 공개 메소드

Create model instance
public createModel ( ) : DynamicModel
리턴 Xpressengine\Database\Eloquent\DynamicModel

delete() 공개 메소드

delete
public delete ( DynamicModel $item ) : boolean | null
$item Xpressengine\Database\Eloquent\DynamicModel item
리턴 boolean | null

getModel() 공개 메소드

The name of Category model class
public getModel ( ) : string
리턴 string

query() 공개 메소드

query
public query ( ) : Builder
리턴 Illuminate\Database\Eloquent\Builder

setModel() 공개 메소드

Set the name of Category model
public setModel ( string $model ) : void
$model string model class
리턴 void

update() 공개 메소드

update
public update ( DynamicModel $item, array $data = [] ) : DynamicModel
$item Xpressengine\Database\Eloquent\DynamicModel item
$data array data
리턴 Xpressengine\Database\Eloquent\DynamicModel

프로퍼티 상세

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

model name. Xpressengine\Database\Eloquent\DynamicModel를 상속받은 class의 이름이어야 한다
protected $model