class WidgetBoxRepository

Traits

Properties

protected string $model from RepositoryTrait

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

in RepositoryTrait at line 36
__construct(mixed $model)

constructor.

Parameters

mixed $model model

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

update

Parameters

DynamicModel $item item
array $data data

Return Value

DynamicModel

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

delete

Parameters

DynamicModel $item item

Return Value

bool|null

Exceptions

Exception

in RepositoryTrait at line 73
string getModel()

The name of Category model class

Return Value

string

in RepositoryTrait at line 84
void setModel(string $model)

Set the name of Category model

Parameters

string $model model class

Return Value

void

in RepositoryTrait at line 94
DynamicModel createModel()

Create model instance

Return Value

DynamicModel

in RepositoryTrait at line 106
Builder query()

query

Return Value

Builder

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

__call

Parameters

string $method method name
array $parameters parameters

Return Value

mixed