trait RepositoryTrait

Properties

protected string $model

Methods

__construct(mixed $model)

constructor.

update(DynamicModel $item, array $data = array())

update

bool|null
delete(DynamicModel $item)

delete

string
getModel()

The name of Category model class

void
setModel(string $model)

Set the name of Category model

createModel()

Create model instance

Builder
query()

query

mixed
__call(string $method, array $parameters)

__call

Details

at line 36
__construct(mixed $model)

constructor.

Parameters

mixed $model model

at line 49
DynamicModel update(DynamicModel $item, array $data = array())

update

Parameters

DynamicModel $item item
array $data data

Return Value

DynamicModel

at line 63
bool|null delete(DynamicModel $item)

delete

Parameters

DynamicModel $item item

Return Value

bool|null

Exceptions

Exception

at line 73
string getModel()

The name of Category model class

Return Value

string

at line 84
void setModel(string $model)

Set the name of Category model

Parameters

string $model model class

Return Value

void

at line 94
DynamicModel createModel()

Create model instance

Return Value

DynamicModel

at line 106
Builder query()

query

Return Value

Builder

at line 118
mixed __call(string $method, array $parameters)

__call

Parameters

string $method method name
array $parameters parameters

Return Value

mixed