Moodle plugins directory: Web Service Get Contexts | Moodle.org
Web Service Get Contexts
General plugins (Local) ::: local_getcontexts
Maintained by Francois J
It is a web service designed to return contexts providing context level and instance ID.
It includes a simple example.
Latest release:
14 sites
4 downloads
2 fans
Current versions available: 1
It is a web service designed to return contexts providing context level and instance ID.
It includes a simple example.
This web service was designed to help with the core_role_assign_roles (to link a parent to a student) core_role_unassign_roles (to unenroll a student/teacher from a course; to unlink a parent to a student) and core_files_upload web service core functions as they need a context.
Contributors
Francois J (Lead maintainer)
Please login to view contributors details and/or to contact them
Please consider adding a code repository when editing the plugin.
Also if this is still required for the upcoming 2.5 release in may (after the work done in http://docs.moodle.org/dev/Web_services_Roadmap), perhaps you might wish to open up an MDL to consider this call being included into core.
I can refer to two opened MDL concerning the context need:
For core_role_assign_roles: https://tracker.moodle.org/browse/MDL-39152
For core_role_unassign_roles: https://tracker.moodle.org/browse/MDL-39153
The issue with the context has been fixed in Moodle 2.6. (See links in previous comment).
The plugin is still needed for the Moodle integration of RosarioSIS as we cannot rely only upon 2.6.