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

Create API for recent activity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Blocks, Course
    • Labels:

      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

              • Assignee:
                Unassigned
                Reporter:
                marina Marina Glancy
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: