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

Course editor: move the format base class to namespace like the rest of subsystems integrations

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Future Dev, 4.2
    • Course
    • 2

      Since Moodle 4.0 the course format is a subsystem called core_courseformat. This means that all format plugins can integrate with it using the classes\courseformat, classes\output\courseformat, and templates\courseformat folders.

      However, due to historical reasons, even if the format base class is now namespace as core_courseformat\base, the format plugins class is not namespaced and uses a global format_PLUGINNAME one.

      In this issue, all format plugins classes will be moved to format/PLUGINNAME/classes/courseformat/format.php. Those new classes will have de format_PLUGINNAME\courseformat namespace and will extend core_courseformant\base class.

      There's a proof of concept of the namespaced classes in this commit:

      https://github.com/ferranrecio/moodle/commit/a9d0827156bb7fe4156c1f5103edd6a43537fe98

       

            Unassigned Unassigned
            tusefomal Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 2 hours, 31 minutes
                1w 2h 31m

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