Methods summary
public static
|
|
public static
boolean
|
#
add_member( integer $user_id, integer $idgroup )
Adds a member in a group
Parameters
- $user_id
- User id
- $idgroup
- Group id
Returns
boolean True if the member has been succefully added.
|
public static
|
#
edit_member( integer $user_id, array $array_user_groups )
Edits the user groups, compute difference between previous and new groups.
Edits the user groups, compute difference between previous and new groups.
Parameters
- $user_id
- The user id
- $array_user_groups
- The new array of groups.
|
public static
The
|
#
get_groups_names( )
Returns the list of the names of the groups, array: id => name
Returns the list of the names of the groups, array: id => name
Returns
The array groups
|
public static
array
|
#
get_groups( )
Returns the list of the groups
Returns the list of the groups
Returns
array The array groups
|
public static
|
#
remove_member( integer $user_id, integer $idgroup )
Removes a member in a group.
Removes a member in a group.
Parameters
- $user_id
- The user id
- $idgroup
- The id group.
|