Development talk:Moodle API Function List: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
== Blog == | == Blog == | ||
== Calendar == | == Calendar == | ||
== Category == | |||
get_category() | |||
create_category() | |||
delete_category() | |||
update_category() | |||
update_parent_category() | |||
== Course == | == Course == | ||
get_course_activities($courseid=0, $groupid=null) // return the list of activity {id, name, type} | 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} | get_course_resources($courseid=0, $groupid=null) // return the list of {id,. resource, type} | ||
create_section() | |||
get_sections() | |||
delete_section() | |||
get_metacourse() | |||
=== Course Format === | === Course Format === | ||
Line 19: | Line 29: | ||
TODO: define course outline xml dtd | TODO: define course outline xml dtd | ||
== Grade == | == Grade == | ||
== Group == | == Group == | ||
create_grouping() | |||
delete_grouping() | |||
update_grouping() | |||
get_grouping() | |||
add_group_to_grouping() | |||
get_groups_from_grouping() | |||
delete_group_from_grouping() | |||
== Mod == | == Mod == | ||
=== Assignment == | === Assignment === | ||
=== Chat === | === Chat === | ||
=== Choice === | === Choice === | ||
Line 37: | Line 54: | ||
=== Survey === | === Survey === | ||
=== Wiki === | === Wiki === | ||
== Portfolio == | == Portfolio == | ||
== Repository == | == Repository == | ||
== Role == | |||
create_role() | |||
get_roles() | |||
update_role() | |||
delete_role() | |||
assign_role() | |||
inherit_capability() | |||
allow_capability() | |||
prevent_capability() | |||
prohibit_capability() | |||
get_users_by_role() | |||
has_capability() | |||
== Search == | == Search == | ||
== Tag == | == Tag == | ||
== User == | == User == |
Latest revision as of 14:26, 5 February 2009
Proposal for expansion of the API
by Ludo's team UPC
Admin
Blocks
Blog
Calendar
Category
get_category() create_category() delete_category() update_category() update_parent_category()
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} create_section() get_sections() delete_section() get_metacourse()
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
Grade
Group
create_grouping() delete_grouping() update_grouping() get_grouping() add_group_to_grouping() get_groups_from_grouping() delete_group_from_grouping()
Mod
Assignment
Chat
Choice
Data
Feedback
Forum
Glossary
Lesson
Quiz
Resource
Scorm
Survey
Wiki
Portfolio
Repository
Role
create_role() get_roles() update_role() delete_role() assign_role() inherit_capability() allow_capability() prevent_capability() prohibit_capability() get_users_by_role() has_capability()