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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • Future Dev
    • Other
    • 3
    • Activity Sprint 1, Activity Sprint 2, Activity Sprint 3

      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.

            mathewmay Glyn (Mathew) May
            abgreeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.