|
| | getInstalledPlugins () |
| |
| | getInstalledModules () |
| |
| | getEnabledPlugins ($id) |
| |
| | getInstitutes () |
| |
| | accept_user ($username, $sem_id) |
| |
| | deny_user ($username, $sem_id) |
| |
| | promote_user ($username, $sem_id, $perm) |
| |
| | remove_user ($username, $sem_id) |
| |
| | countGroups ($search=null) |
| |
| | getAllGroups ($sort='', $lower_bound=1, $elements_per_page=NULL, $search=null) |
| |
| | countMembers ($semid) |
| |
| | getFounder ($semid) |
| |
| | isMember ($userid, $semid) |
| |
| | addFounder ($username, $sem_id) |
| |
| | removeFounder ($username, $sem_id) |
| |
| | getFounders ($sem_id) |
| |
| | getMembers ($sem_id, $lower_bound=1, $elements_per_page=NULL) |
| |
| | inviteMember ($user_id, $sem_id) |
| |
| | cancelInvitation ($username, $sem_id) |
| |
| | getInvitations ($sem_id) |
| |
| | isInvited ($user_id, $sem_id) |
| |
| | compare_status ($a, $b) |
| |
| | isStudygroup ($sem_id) |
| |
| | applicationNotice ($sem_id, $user_id) |
| |
◆ accept_user()
| accept_user |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
allows an user to access a "closed" studygroup
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
◆ addFounder()
| addFounder |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
adds a founder to a given studygroup
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
◆ applicationNotice()
| applicationNotice |
( |
|
$sem_id, |
|
|
|
$user_id |
|
) |
| |
If a new user applies, an application note to all moderators and founders of a studygroup will be automatically sent while calling this function. The note contains the user's name and a direct link to the member page of the studygroup.
- Parameters
-
| string | $sem_id | id of a seminar / studygroup |
| strimg | $user_id | id of the applicant |
- Returns
- int number of recipients
◆ cancelInvitation()
| cancelInvitation |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
cancels invitation.
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
◆ compare_status()
| compare_status |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
callback function - used to compare sequences of studygroup statuses
- Parameters
-
| array | status a |
| array | status b |
return int ordering
◆ countGroups()
| countGroups |
( |
|
$search = null | ) |
|
retrieves the count of all studygroups
param string search a filter term
- Returns
- string count
◆ countMembers()
returns the count of members for a given studygroup
- Parameters
-
- Returns
- int count
◆ deny_user()
| deny_user |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
denies access to a "closed" studygroup for an user
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
◆ getAllGroups()
| getAllGroups |
( |
|
$sort = '', |
|
|
|
$lower_bound = 1, |
|
|
|
$elements_per_page = NULL, |
|
|
|
$search = null |
|
) |
| |
get all studygroups in a paged manner wrt a stort criteria and a search term
- Parameters
-
| string | sort criteria |
| int | lower bound of the resultset |
| int | elements per page, if null get the global configuration value |
| string | search term |
- Returns
- array studygroups
◆ getEnabledPlugins()
gets enabled plugins for a given studygroup
- Parameters
-
- Returns
- array enabled plugins
◆ getFounder()
get founder for a given studgroup
- Parameters
-
- Returns
- array founder
◆ getFounders()
get founders of a given studygroup
- Parameters
-
- Returns
- array founders
◆ getInstalledModules()
retrieves all modules
- Returns
- array modules
◆ getInstalledPlugins()
retrieves all installed plugins
- Returns
- array modules a set of all plugins
◆ getInstitutes()
retrieves all institues suitbable for an admin wrt global studygroup settings
- Returns
- array institutes
◆ getInvitations()
| getInvitations |
( |
|
$sem_id | ) |
|
returns invited member of a given studygroup.
- Parameters
-
- Returns
- array invited members
◆ getMembers()
| getMembers |
( |
|
$sem_id, |
|
|
|
$lower_bound = 1, |
|
|
|
$elements_per_page = NULL |
|
) |
| |
retrieves all members of a given studygroup in a paged manner
- Parameters
-
| string | id of a studygroup |
| int | lower bound of the resultset |
| int | elements per page, if null get the global configuration value |
- Returns
- array members
◆ inviteMember()
| inviteMember |
( |
|
$user_id, |
|
|
|
$sem_id |
|
) |
| |
invites a member to a given studygroup.
- Parameters
-
| string | user id |
| string | id of a studygroup |
- Returns
- void
◆ isInvited()
| isInvited |
( |
|
$user_id, |
|
|
|
$sem_id |
|
) |
| |
checks if a user is already invited.
- Parameters
-
| string | user id |
| string | id of a studygroup |
- Returns
- array invited members
◆ isMember()
| isMember |
( |
|
$userid, |
|
|
|
$semid |
|
) |
| |
checks whether a user is a member of a studygroup
- Parameters
-
| string | id of a user |
| string | id of a studygroup |
- Returns
- boolean membership
◆ isStudygroup()
Checks for a given seminar_id whether a course is a studygroup
- Parameters
-
- Returns
- array studygroup
◆ promote_user()
| promote_user |
( |
|
$username, |
|
|
|
$sem_id, |
|
|
|
$perm |
|
) |
| |
promotes an user in a studygroup wrt to a given perm
- Parameters
-
| string | username |
| string | id of a studygroup |
| string | perm |
- Returns
- void
◆ remove_user()
| remove_user |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
removes a user of a studygroup
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
◆ removeFounder()
| removeFounder |
( |
|
$username, |
|
|
|
$sem_id |
|
) |
| |
removes a founder from a given studygroup
- Parameters
-
| string | username |
| string | id of a studygroup |
- Returns
- void
The documentation for this class was generated from the following file: