Development talk:Moodle API Function List: Difference between revisions
From MoodleDocs
(New page: =Proposal for expansion of the API= ''by Ludo's team UPC'' ==Course== get_activities($courseid=0, $groupid=null) // return the list of activity {id, name, type} get_resources($cours...) |
(→Course) |
||
Line 3: | Line 3: | ||
==Course== | ==Course== | ||
get_course_activities($courseid=0, $groupid=null) // return the list of activity {id, name, type} | |||
get_course_resources($courseid=0, $groupid=null) // return the list of {id,. resource, type} | |||
===Course Format=== | |||
get_course_outline($courseid=0, $groupid=null) // to discuss, maybe xml stuff | |||
get_course_outline would be a nice to have from the webservices consumer app. If an external app needs to render the moodle course, need's more than just activities and resources, it needs to know how to display it. this function whould be implemented by the course format. | |||
TODO: define course outline xml dtd |
Revision as of 09:04, 14 January 2009
Proposal for expansion of the API
by Ludo's team UPC
Course
get_course_activities($courseid=0, $groupid=null) // return the list of activity {id, name, type} get_course_resources($courseid=0, $groupid=null) // return the list of {id,. resource, type}
Course Format
get_course_outline($courseid=0, $groupid=null) // to discuss, maybe xml stuff
get_course_outline would be a nice to have from the webservices consumer app. If an external app needs to render the moodle course, need's more than just activities and resources, it needs to know how to display it. this function whould be implemented by the course format.
TODO: define course outline xml dtd