class UserGroupRepository implements UserGroupRepositoryInterface

회원 그룹 정보를 저장하는 Repository

Traits

Properties

protected string $model from RepositoryTrait

Methods

__construct(mixed $model)

constructor.

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

update

bool
delete(UserGroup $group)

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

mixed
addUser(GroupInterface $group, UserInterface $user)

주어진 그룹에 주어진 회원을 추가한다.

void
exceptUser(GroupInterface $group, UserInterface $user)

주어진 회원을 그룹에서 제외시킨다.

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

at line 42
bool delete(UserGroup $group)

delete

Parameters

UserGroup $group group

Return Value

bool

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

at line 58
mixed addUser(GroupInterface $group, UserInterface $user)

주어진 그룹에 주어진 회원을 추가한다.

Parameters

GroupInterface $group 대상 그룹
UserInterface $user 추가할 회원

Return Value

mixed

at line 71
void exceptUser(GroupInterface $group, UserInterface $user)

주어진 회원을 그룹에서 제외시킨다.

Parameters

GroupInterface $group 대상 그룹
UserInterface $user 제외시킬 회원

Return Value

void