Catch completion course information

  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 9 months ago #1 by Paolo
Hi Antonio, is there a way to catch from moodle database if a user completed a course?
I want to disable some buttons in joomla depending on courses completion.
Thanks
Paolo

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #2 by Chris
Replied by Chris on topic Re: Catch completion course information
At this moment this is not possible. Moodle, as of 2.0, does have completion tracking which perhaps could be used, but right now I understand it is not easy to get to as there is no Moodle API for this. We would need to:
1) confirm there is no API to get this information
2) build additional moodle services for joomdle to retrieve the information and pass to joomla.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Re: Catch completion course information
The problem at this point is that there is no event triggered in Moodle when a course is completed, so we can not plug in, like we do for the creation of courses, user enrolments, etc.

Please Log in or Create an account to join the conversation.

  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 9 months ago #4 by Paolo
Replied by Paolo on topic Catch completion course information
Thank you for the help Chris and Antonio.
My question is a little different, I didn't explain very well before.
I don't need the action to be triggered,I just want some buttons in my courses page to be hidden or visible depending on the courses that are completed. So when I open that page, it should check on moodle database what courses are completed and depending on that, I disable or enable some buttons. My only problem is, how do I access moodle database, from joomdle "my courses" page? Is there something like JFactory::getDBO(); working from mycourses page to moodle database?
I hope i did explain better.
Thank you
Paolo

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Catch completion course information
That could be possible: as Chris said, you would need to create new web services in Moodle to return that info, and use it in Joomla side.

Please Log in or Create an account to join the conversation.