|
Stud.IP
jlu_3.3 Revision
|


Public Member Functions | |
| getUserContacts ($user_id) | |
| addUserContact ($user_id, $buddy_user_id) | |
| removeUserContact ($user_id, $buddy_user_id) | |
| getUserContactGroups ($user_id) | |
| createContactGroup ($user_id) | |
| showContactGroup ($group_id) | |
| destroyContactGroup ($group_id) | |
| indexOfContactGroupMembers ($group_id) | |
| addToContactGroup ($group_id, $user_id) | |
| removeFromContactGroup ($group_id, $user_id) | |
Public Member Functions inherited from RouteMap | |
| __construct () | |
| init ($router, $route, $request_body=null) | |
| paginated ($data, $total, $uri_params=array(), $query_params=array()) | |
| paginate ($uri_format, $total, $offset=null, $limit=null) | |
| collect ($data) | |
| status ($status) | |
| headers ($headers=array()) | |
| body ($body) | |
| contentType ($mime_type, $params=array()) | |
| error ($status, $body=null) | |
| etag ($value, $strong_etag=true, $new_resource=null) | |
| expires ($amount, $cache_control=array()) | |
| cacheControl ($values) | |
| halt () | |
| lastModified ($time) | |
| notFound ($body=null) | |
| redirect ($url, $args=null) | |
| sendFile ($_path, $opts=array()) | |
| url ($addr, $url_params=null) | |
| urlf ($addr_f, $format_params, $url_params=null) | |
Static Public Member Functions | |
| static | before () |
Additional Inherited Members | |
Protected Attributes inherited from RouteMap | |
| $pagination = false | |
| $offset | |
| $limit | |
@condition user_id ^[a-f0-9]{32}$ @condition friend_id ^[a-f0-9]{32}$ @condition group_id ^[a-f0-9]{32}$
| addToContactGroup | ( | $group_id, | |
| $user_id | |||
| ) |
Add a user to a contact group
@put /contact_group/:group_id/members/:user_id

| addUserContact | ( | $user_id, | |
| $buddy_user_id | |||
| ) |
Adds/Updates a contact to user's list of contacts
@put /user/:user_id/contacts/:friend_id

|
static |
| createContactGroup | ( | $user_id | ) |
Create a new contact group for a user.

| destroyContactGroup | ( | $group_id | ) |
Remove a contact group
@delete /contact_group/:group_id

| getUserContactGroups | ( | $user_id | ) |
List all contact groups of a user
@get /user/:user_id/contact_groups

| getUserContacts | ( | $user_id | ) |
Lists all contacts of a user
@get /user/:user_id/contacts

| indexOfContactGroupMembers | ( | $group_id | ) |
List all members of a contact group
@get /contact_group/:group_id/members

| removeFromContactGroup | ( | $group_id, | |
| $user_id | |||
| ) |
Remove a user from a contact group
@delete /contact_group/:group_id/members/:user_id

| removeUserContact | ( | $user_id, | |
| $buddy_user_id | |||
| ) |
Deletes a contact
@delete /user/:user_id/contacts/:friend_id

| showContactGroup | ( | $group_id | ) |
Show a single contact group
@get /contact_group/:group_id
