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

Create backend code to retrieve activities - Sub task of MDL-67264

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Other
    • Story Points:
      3
    • Sprint:
      Activity Sprint 1, Activity Sprint 2, Activity Sprint 3

      Description

      Create backend code to query all installed activities, checking for visibility, and returning a list / object / whatever of activities to display in the activity chooser.

      Note There should already be code existing for the current activity picker. Investigate that code. It's likely that we won't need to initially touch it and just update the frontend. Current code for retrieving activities is in course/renderer.php - course_section_add_cm_control()

      Note 2 course/lib.php get_module_metadata() does a component callback for 'get_shortcuts' which is what adds more activities to the activity chooser.

      24/11/19 It has been decided today to retool this MDL to test out the performance of webservice call to fetch the course modules and move away using the json_encode method.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              abgreeve Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h