Moodle

Proposed Module API change to enable RSS feed for recent activity

Details

  • Affected Branches:
    MOODLE_20_STABLE

Description

While developing an RSS feed for recent activity we altered the way the modules were getting and displaying their recent activity.

The change was splitting up the $modname._print_recent_activity(..) function into a $modname._get_recent_activity(..) and $modname._print_recent_activity(..) so that the RSS feed could use the modules get function and the existing print functions could still be called from within course/lib.php for displaying the recent activity block.

We would like to suggest this as a possible API change for Modules in 2.0.

Attached is a patch for the suggested API change using the Forum Module, it is a follow up of the original Tracker issue #MDL-17045 and supplied patch.

Thanks,
Stacey Walker

Activity

Hide
Martin Dougiamas added a comment -

Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

Show
Martin Dougiamas added a comment - Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.
Hide
Nick Phillips added a comment -

Wondering what the status of this is currently - had come to the same conclusion as it looks like I'm going to be writing an improved "Recent Activity" block.

I see that the *_get_recent_mod_activity functions seem to at least be in the process of appearing. They're present for assignment, feedback, forum, quiz, workshop in Moodle 2.1 & 2.2, but this leaves chat, glossary, survey & wiki (& lti in 2.2), and a google search for any more information on whether this is/will be a reliable way to get the required information finds next to nothing.

Show
Nick Phillips added a comment - Wondering what the status of this is currently - had come to the same conclusion as it looks like I'm going to be writing an improved "Recent Activity" block. I see that the *_get_recent_mod_activity functions seem to at least be in the process of appearing. They're present for assignment, feedback, forum, quiz, workshop in Moodle 2.1 & 2.2, but this leaves chat, glossary, survey & wiki (& lti in 2.2), and a google search for any more information on whether this is/will be a reliable way to get the required information finds next to nothing.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: