void addToGroup(
$groupid,
$userid
)
|
|
Adds an User to a Group.
Parameters:
the createGroup(
String
$name
)
|
|
Creates a new UserGroup.
Parameters:
|
String |
$name: |
name the Name of the new UserGroup |
API Tags:
mixed createGroupWithID(
$id,
$name
)
|
|
Creates a new UserGroup with the given ID.
DO NOT USE THIS METHOD FOR SIMPLY CREATING A NEW GROUP!
Parameters:
API Tags:
| Return: | the Database result |
| Access: | protected |
Deletes all UserGroups.
This does not delete the User-Group mapping, make sure to fix this!!!!!!!
void deleteGroup(
int
$groupid
)
|
|
Deletes an UserGroup.
Make sure that no UserGroup mapping matches this Group, this will not be handled by this function.
Parameters:
|
int |
$groupid: |
groupid ID of the Group to be deleted |
void removeAllMemberships(
int
$userid
)
|
|
Remove User from all groups currently mapped to.
This is needed for example when a User is deleted.
Parameters:
|
int |
$userid: |
the user that should be removed from all groups |
void removeFromGroup(
$groupid,
$userid
)
|
|
Removes an User from a Group.
Parameters: