Sharing developed external functions

Sharing developed external functions

by Christian Pfisterer -
Number of replies: 1

Hi,

I've taken a deeper look into the moodle 2.0 web services in the last couple of month and developed some new external functions which I needed for a project.

I would like to share this stuff with you. Maybe someone can use it!?!.

I've added the new external functions to the /local directory. It works like a plugin basically.

So far I've created external functions for:

enrolment:

manual_enrol() - allows enrolment of users into courses
ret_value() - just a test external function for myself to check if web services are set up correctly

courses:

add_event() - allows you to add an event to an existing course
edit_summary() - change the summary text of a course
create_course_from_template() - Currently not working. Can't figure out why. It should basically allow you to create a new course from a backup of a course.

I've also added an simple xmlrpcclient for testing the different functions.

Hope you can use the stuff I've developed. Please be aware that some of the code is closely connected to the project I've been working on.

BR

Christian

Average of ratings: -