![]() |
Ryzom Account Management System
1.0
|
Handles the linkage of users being in a support group. More...
Public Member Functions | |
| __construct () | |
| A constructor. | |
| set ($values) | |
| sets the object's attributes. | |
| create () | |
| creates a new 'in_support_group' entry. | |
| delete () | |
| deletes an existing 'in_support_group' entry. | |
| getUser () | |
| get user attribute of the object. | |
| getGroup () | |
| get group attribute of the object. | |
| setUser ($u) | |
| set user attribute of the object. | |
| setGroup ($g) | |
| set group attribute of the object. | |
Static Public Member Functions | |
| static | userExistsInSGroup ($user_id, $group_id) |
| Check if user is in in_support_group. | |
Private Attributes | |
| $user | |
| The id of the user being in a support group. | |
| $group | |
| The id of the support group. | |
Handles the linkage of users being in a support group.
Moderators and Admins can be part of a support group, this class offers functionality to check if a link between a user and group is existing.
| __construct | ( | ) |
A constructor.
Empty constructor
| create | ( | ) |
creates a new 'in_support_group' entry.
this method will use the object's attributes for creating a new 'in_support_group' entry in the database.
| delete | ( | ) |
deletes an existing 'in_support_group' entry.
this method will use the object's attributes for deleting an existing 'in_support_group' entry in the database.
| getGroup | ( | ) |
get group attribute of the object.
| getUser | ( | ) |
get user attribute of the object.
| set | ( | $ | values | ) |
sets the object's attributes.
| $values | should be an array of the form array('User' => user_id, 'Group' => support_groups_id). |
| setGroup | ( | $ | g | ) |
set group attribute of the object.
| $g | integer id of the support group |
| setUser | ( | $ | u | ) |
set user attribute of the object.
| $u | integer id of the user |
| static userExistsInSGroup | ( | $ | user_id, |
| $ | group_id | ||
| ) | [static] |
Check if user is in in_support_group.
| $user_id | the id of the user. |
| $group_id | the id of the support group. |
$group [private] |
The id of the support group.
$user [private] |
The id of the user being in a support group.
1.7.6.1