Public Member Functions | |
| GenieGate_Groups (&$dbh) | |
| Constructor. | |
| getMemberGroups ($uid) | |
| Return an associative array of groups this uid is a member of, the keys are the group ID's, the values are the group's symbolic names. | |
| getMemberGids ($uid) | |
| Like getMemberGids, except that it only returns the group IDŐs, not the whole group info. | |
| setMember ($uid, $gids) | |
| Sets member to a list of groups. | |
| getMembers ($gid) | |
| Get all the members of a given group ID. | |
| setGroup ($gid, $name, $can_signup) | |
| Create/Update a named group, if $gid already exists, the name (and $can_signup) are edited, if it does NOT exist, a new group is created. | |
| getGroupName ($gid) | |
| Get the group details for a group. | |
| getAllGroups ($show=TRUE) | |
| Get a list of all groups. | |
| removeGroup ($gid) | |
| Removes a group. | |
| addListener (&$listener) | |
| Add a listener. | |
| fireGroupNameChange ($gid, $name, $sign_ok, $is_new) | |
| Tell all listeners we've added/changed a group. | |
| fireGroupNameDelete ($gid, &$info) | |
| Tell all listeners that a group has been removed. | |
| fireUserGroupChange ($uid, &$old_groups, &$new_groups) | |
| Tell listeners about the new groups the user is part of. | |
Public Attributes | |
| $DBH | |
| mysql database link. | |
| $LISTENERS = array() | |
| List of listeners. | |
Definition at line 5 of file Groups.php.
|
|
Constructor.
Definition at line 21 of file Groups.php. |
|
|
Add a listener. (plugins use) Definition at line 210 of file Groups.php. |
|
||||||||||||
|
Tell all listeners that a group has been removed. * Definition at line 221 of file Groups.php. Referenced by removeGroup(). |
|
|
Get a list of all groups.
Definition at line 172 of file Groups.php. Referenced by setMember(). |
|
|
Get the group details for a group.
Definition at line 153 of file Groups.php. Referenced by removeGroup(), and setGroup(). |
|
|
Return an associative array of groups this uid is a member of, the keys are the group ID's, the values are the group's symbolic names.
Definition at line 32 of file Groups.php. |
|
|
Removes a group.
Definition at line 195 of file Groups.php. References fireGroupNameDelete(), and getGroupName(). |
|
||||||||||||||||
|
Create/Update a named group, if $gid already exists, the name (and $can_signup) are edited, if it does NOT exist, a new group is created.
Definition at line 123 of file Groups.php. References fireGroupNameChange(), and getGroupName(). |
|
||||||||||||
|
Sets member to a list of groups.
Definition at line 74 of file Groups.php. References fireUserGroupChange(), getAllGroups(), and getMemberGids(). |
Documentation generated by DoxyGen