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

Create API for recent activity

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 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
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: