Simple class representing a user domain in Stud.IP.
◆ __construct()
| __construct |
( |
|
$id, |
|
|
|
$name = NULL |
|
) |
| |
◆ __toString()
Get a string representation of this user domain.
◆ addSeminar()
| addSeminar |
( |
|
$seminar_id | ) |
|
Add a seminar to this user domain.
◆ addUser()
Add a user to this user domain.
◆ delete()
Delete this user domain from the database.
◆ getID()
Get the ID of this user domain.
◆ getName()
Get the display name of this user domain.
◆ getSeminars()
Get an array of all seminars in this user domain. Returns an array of seminar IDs.
◆ getUserDomains()
| static getUserDomains |
( |
| ) |
|
|
static |
Get an array of all defined user domains. Returns an array of UserDomain objects.
◆ getUserDomainsForSeminar()
| static getUserDomainsForSeminar |
( |
|
$seminar_id | ) |
|
|
static |
Get an array of all user domains for a specific seminar. Returns an array of UserDomain objects.
◆ getUserDomainsForUser()
| static getUserDomainsForUser |
( |
|
$user_id | ) |
|
|
static |
Get an array of all user domains for a specific user. Returns an array of UserDomain objects.
◆ getUsers()
Get an array of all users in this user domain. Returns an array of user IDs.
◆ removeSeminar()
| removeSeminar |
( |
|
$seminar_id | ) |
|
Remove a seminar from this user domain.
◆ removeUser()
Remove a user from this user domain.
◆ removeUserDomainsForSeminar()
| static removeUserDomainsForSeminar |
( |
|
$seminar_id | ) |
|
|
static |
Remove all user domains for a specific seminar.
◆ removeUserDomainsForUser()
| static removeUserDomainsForUser |
( |
|
$user_id | ) |
|
|
static |
Remove all user domains for a specific user.
◆ setName()
Set the display name of this user domain.
◆ store()
Store changes to the user domain to the database. This currently only saves the display name.
The documentation for this class was generated from the following file: