|
Stud.IP
trunk Revision
|


Public Member Functions | |
| getCourseBlubber ($course_id) | |
| createCourseBlubber ($course_id) | |
| getProfileBlubber ($user_id) | |
| createUserBlubber ($user_id) | |
| getCustomStreamBlubber ($stream_id) | |
| getBlubberData ($blubber_id) | |
| createNewBlubber () | |
| getComments ($blubber_id) | |
| createComment ($blubber_id) | |
| editBlubberPosting ($blubber_id) | |
| deleteBlubberPosting ($blubber_id) | |
Public Member Functions inherited from RouteMap | |
| __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) | |
Static Public Member Functions | |
| static | before () |
Additional Inherited Members | |
Protected Member Functions inherited from RouteMap | |
| extractConditions ($docblock, $conditions=[]) | |
Protected Attributes inherited from RouteMap | |
| $pagination = false | |
| $offset | |
| $limit | |
@license GPL 2 or later
@condition course_id ^[a-f0-9]{32}$ @condition stream_id ^(global|[a-f0-9]{32})$ @condition user_id ^[a-f0-9]{32}$ @condition blubber_id ^[a-f0-9]{32}$
|
static |
Some inclusions before the routes can be prcessed
| createComment | ( | $blubber_id | ) |
Create a comment to a blubber
| string | $blubber_id | id of the blubber |
| string | blubbercontent content of the comment. |

| createCourseBlubber | ( | $course_id | ) |
Create a blubber in a course and redirects to the new blubber-route
| $course_id | id of the course |
| string | : content the content of the blubber |

| createNewBlubber | ( | ) |
Create a new blubber. POST-Parameters are blubbercontent, context_type, course_id, private_adressees. Redirects to the new blubber afterwards.
| string | content : content of the blubber. Can have {@}mentions if you want. |
| string | context_type : "public", "private" or "course". If set to "course" you need to define the parameter course_id. |
| string|null | course_id : id of the seminar, the blubber should be in. Leave away if context_type is not "course". |
| array|null | private_adressees : array of user_ids of people that should receive the private blubber. Remember that mentioned users will also see the private blubber, so it's your choice if the user should be mentioned or in this array. Leave blank if context_type is not "private". |

| createUserBlubber | ( | $user_id | ) |
Create a blubber in a user's profile and redirects to the new blubber-route
| string | $user_id | id of the |
| string | content the content of the blubber |

| deleteBlubberPosting | ( | $blubber_id | ) |
Deletes the blubber and informs the author of the blubber if the current user is not the author of the blubber.
@delete /blubber/posting/:blubber_id @delete /blubber/comment/:blubber_id
| string | $blubber_id |

| editBlubberPosting | ( | $blubber_id | ) |
Edits the content of a blubber. Sends a message of the change to the author, if the editing user is not the author of the blubber, to inform him/her about the change. If the content is empty the blubber is going to be deleted, because we don't want empty blubber in the system.
@put /blubber/posting/:blubber_id @put /blubber/comment/:blubber_id
| string | $blubber_id | |
| string | content new content for the blubber |

| getBlubberData | ( | $blubber_id | ) |
Displays all data to a special blubber
@get /blubber/posting/:blubber_id @get /blubber/comment/:blubber_id
| string | blubber_id id of a blubber thread |

| getComments | ( | $blubber_id | ) |
Returns all comments of the blubber starting with the newest. Returns an empty array if blubber_id is from a comment.
@get /blubber/posting/:blubber_id/comments
| string | $blubber_id | id of the thread |

| getCourseBlubber | ( | $course_id | ) |
List blubber in a course
@get /course/:course_id/blubber
| string | $course_id | id of the course |

| getCustomStreamBlubber | ( | $stream_id | ) |
List blubber in a custom stream
@get /blubber/stream/:stream_id
| string | $stream_id | id of the stream or "global" if you want to access the global stream. |

| getProfileBlubber | ( | $user_id | ) |
List blubber in a user's profile
@get /user/:user_id/blubber
| string | $user_id | id of the user |