Stud.IP
5.4
|
Public Member Functions | |
getThreadData ($thread_id) | |
getMyThreads () | |
postComment ($thread_id) | |
editComment ($thread_id, $comment_id) | |
getComments ($thread_id) | |
threadIsFollowed ($thread_id) | |
followThread ($thread_id) | |
unfollowThread ($thread_id) | |
![]() | |
__construct () | |
init ($router, $route) | |
paginated ($data, $total, $uri_params=[], $query_params=[]) | |
paginate ($uri_format, $total, $offset=null, $limit=null) | |
collect ($data) | |
status ($status) | |
headers ($headers=[]) | |
body ($body) | |
contentType ($mime_type, $params=[]) | |
error ($status, $body=null) | |
etag ($value, $strong_etag=true, $new_resource=null) | |
expires ($amount, $cache_control=[]) | |
cacheControl ($values) | |
halt () | |
lastModified ($time) | |
notFound ($body=null) | |
redirect ($url, $args=null) | |
sendFile ($_path, $opts=[]) | |
url ($addr, $url_params=null) | |
urlf ($addr_f, $format_params, $url_params=null) | |
getRoutes ($http_method=null) | |
getResponse () | |
Additional Inherited Members | |
![]() | |
extractConditions ($docblock, $conditions=[]) | |
![]() | |
$router | |
$route | |
$data = null | |
$response | |
$pagination = false | |
$offset | |
$limit | |
GPL 2 or later
course_id ^[a-f0-9]{1,32}$ stream_id ^(global|[a-f0-9]{1,32})$ user_id ^[a-f0-9]{1,32}$ blubber_id ^[a-f0-9]{1,32}$
editComment | ( | $thread_id, | |
$comment_id | |||
) |
Write a comment to a thread
/blubber/threads/:thread_id/comments/:comment_id
string | $thread_id | id of the blubber thread |
string | $comment | id of the comment |
followThread | ( | $thread_id | ) |
User follows a thread.
string | $thread_id | id of the blubber thread |
getComments | ( | $thread_id | ) |
Write a comment to a thread
/blubber/threads/:thread_id/comments
string | $thread_id | id of the blubber thread |
getMyThreads | ( | ) |
Get threads
/blubber/threads
getThreadData | ( | $thread_id | ) |
Get content and some comments for a blubber-thread or for the "global" thread all "public" threads.
/blubber/threads/:thread_id
string | $thread_id | id of the blubber thread or "global" if you want public threads (not comments). Remind the global thread is a virtual thread with a special behaviour. |
postComment | ( | $thread_id | ) |
Write a comment to a thread
string | $thread_id | id of the blubber thread |
threadIsFollowed | ( | $thread_id | ) |
Does the current user follow the thread?
/blubber/threads/:thread_id/follow
unfollowThread | ( | $thread_id | ) |
User unfollows a thread.
/blubber/threads/:thread_id/follow
string | $thread_id | id of the blubber thread |