Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43742

Create API for recent activity

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.7
    • None
    • Blocks, Course

    Description

      At the moment each module must define several callbacks:
      xxx_get_recent_mod_activity
      xxx_print_recent_mod_activity
      xxx_print_recent_activity

      this is

      • quite confusing,
      • there is a lot of code repetition because of almost identical functions for block and report
      • the results are returned mostly in HTML and there is no possibility to control what and how to display

      Suggestion is to create a base class \core_course\recentactivity that modules can extend to implement their logic

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marina Marina Glancy
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: