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

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2
    • None
    • Course
    • 2

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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