Adding custom web service functions

From Joomdle
Revision as of 17:46, 4 February 2019 by Antonio (Talk | contribs) (Created page with "Sometimes it can be handy to create some custom Moodle web service functions that you could use alongside Joomdle stock ones. For example, you may want to generate some custo...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sometimes it can be handy to create some custom Moodle web service functions that you could use alongside Joomdle stock ones.

For example, you may want to generate some custom report in Joomla that uses Moodle data, some of which it is not offered by Joomdle.

In those cases, you can create a new Moodle plugin of type Local:

https://docs.moodle.org/dev/Local_plugins

You can then have your functions there, and add them to Joomdle web service so you can call them as you would call any other Joomdle functions.

The only thing you have to remember is to have your functions names prefixed with 'joomdle_' so you can call them with Joomdle's call method in Joomla.