Your Moodle version

General plugins (Local): Web Service Get Contexts

local_getcontexts
Maintained by Picture of Francois J Francois J
It is a web service designed to return contexts providing context level and instance ID. It includes a simple example.
5
8
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

Picture of Francois J
Francois J (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Thu, Feb 14, 2013, 3:00 PM
    Hi,
    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.
  • Picture of Francois J
    Mon, Jun 10, 2013, 1:59 AM
    Hi Aparup,
    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
  • Picture of Francois J
    Tue, Feb 25, 2014, 6:37 AM
    Hi,
    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.
  • Picture of Howard Miller
    Mon, Jul 25, 2016, 6:26 PM
    I don't think core_files_upload is fixed. That still requires the context (which you can't get)
Please login to post comments