General developer forum

Activity completion on plugin

 
Picture of Darko Miletić
Re: Activity completion on plugin
Core developersParticularly helpful Moodlers

Use the available web services in Moodle or write your own and than call them from javascript using the AJAX module.

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

List of avaliable web service methods in Moodle can be found here

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


 
Average of ratings: -
Picture of Murilo Baptista
Re: Activity completion on plugin
 

Hi Darko,

I made my application with AJAX and it worked but I don't want to rely on cron. I remade using the completion library but I don't know how to find the id of the activities that are required to complete the course, so I can ignore activities that won't be a progress on the map I'm making, do you know where I should look?

Thanks, Murilo

 
Average of ratings: -