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

Import API: create the file_extension_register contract

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.9, Future Dev
    • Fix Version/s: None
    • Component/s: Other
    • Story Points:
      3
    • Sprint:
      Activity Sprint 11

      Description

      Create the file_extension_register interface. This should have:

      • A method register_extensions which returns all extensions supported by the implementing class, and their lang string descriptors. E.g. [‘png’ =>  ‘what is going to happen when this module processes the png’]. This could be an array or a formal object - time permitting.
        • Note: objects in plugins only implement this contract when they want to support at least one file extension, however, we need to provide a way that this method can return ‘all known extensions’. Whether that be via a special extension ‘*’ or some other return is up for discussion.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: