A singleton Class for doing group related functions.
Many of the Group object functions are just wrappers around these.
| since | 0.6 |
|---|---|
| package |
CMS |
| license |
GPL |
get_instance() : \GroupOperations
LoadGroups() : array
array
The list of groups
LoadGroupByID(integer $id) : mixed
integer $idThe id of the group to load
mixed
The group if found. If it's not found, then false
InsertGroup(mixed $group) : integer
mixed $groupThe group object to save to the database
integer
The id of the newly created group. If none is created, -1
UpdateGroup(mixed $group) : boolean
mixed $groupThe group to update
boolean
True if the update was successful, false if not
DeleteGroupByID(integer $id) : boolean
integer $idThe group's id to delete
boolean
True if the delete was successful. False if not.
CheckPermission(integer $groupid, string $perm) : boolean
integer $groupidThe group id
string $permThe permission name
boolean
GrantPermission(integer $groupid, string $perm)
integer $groupidThe group id
string $permThe permission name
RemovePermission(integer $groupid, string $perm)
integer $groupidThe group id
string $permThe permission name