|
Stud.IP
jlu_3.3 Revision
|


Public Member Functions | |
| before () | |
| getUserCourses ($user_id) | |
| getCourse ($course_id) | |
| getMembers ($course_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) | |
Additional Inherited Members | |
Protected Attributes inherited from RouteMap | |
| $pagination = false | |
| $offset | |
| $limit | |
@condition course_id ^[a-f0-9]{32}$ @condition user_id ^[a-f0-9]{32}$
| before | ( | ) |
| getCourse | ( | $course_id | ) |
Show a single course
@get /course/:course_id

| getMembers | ( | $course_id | ) |
List all members of a course. Optionally filtered by a URL parameter 'status'.
@get /course/:course_id/members

| getUserCourses | ( | $user_id | ) |
Lists all courses of a user including the semesters in which that course is active. Optionally filtered by a URL parameter 'semester'.
@get /user/:user_id/courses
