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
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: