Stud.IP
5.4
|
Public Member Functions | |
before () | |
getUserCourses ($user_id) | |
getCourse ($course_id) | |
getMembers ($course_id) | |
getTopFolder ($course_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 | |
course_id ^[a-f0-9]{1,32}$ user_id ^[a-f0-9]{1,32}$
before | ( | ) |
getCourse | ( | $course_id | ) |
Show a single course
/course/:course_id
getMembers | ( | $course_id | ) |
List all members of a course. Optionally filtered by a URL parameter 'status'.
/course/:course_id/members
getTopFolder | ( | $course_id | ) |
Get the root file folder of a course.
/course/:course_id/top_folder
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'.
/user/:user_id/courses