PHP Trait Xpressengine\User\Repositories\RepositoryTrait

Afficher le fichier Open project: xpressengine/xpressengine

Protected Properties

Свойство Type Description
$model model name. Xpressengine\Database\Eloquent\DynamicModel를 상속받은 class의 이름이어야 한다

Méthodes publiques

Méthode Description
__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

Method Details

__call() public méthode

__call
public __call ( string $method, array $parameters ) : mixed
$method string method name
$parameters array parameters
Résultat mixed

__construct() public méthode

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

createModel() public méthode

Create model instance
public createModel ( ) : DynamicModel
Résultat Xpressengine\Database\Eloquent\DynamicModel

delete() public méthode

delete
public delete ( DynamicModel $item ) : boolean | null
$item Xpressengine\Database\Eloquent\DynamicModel item
Résultat boolean | null

getModel() public méthode

The name of Category model class
public getModel ( ) : string
Résultat string

query() public méthode

query
public query ( ) : Builder
Résultat Illuminate\Database\Eloquent\Builder

setModel() public méthode

Set the name of Category model
public setModel ( string $model ) : void
$model string model class
Résultat void

update() public méthode

update
public update ( DynamicModel $item, array $data = [] ) : DynamicModel
$item Xpressengine\Database\Eloquent\DynamicModel item
$data array data
Résultat Xpressengine\Database\Eloquent\DynamicModel

Property Details

$model protected_oe property

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