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

Import API: Create interface for objects representing a file being imported

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9, Future Dev
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Story Points:
      1
    • Sprint:
      Activity Sprint 11

      Description

      Create an interface core_course\local\import\file (namespace TBD) which should have:

      • A method to get the file, which returns a stored_file()
      • A method to get the filename, which returns a string
      • A method to get the file extension, if possible, which returns either a string or null.

      The ‘file’ contract will be implemented/extended by plugins wishing to initialise an import of a file. E.g. As a tool, I want to import a file I know about into Moodle. I'll need to meet the file contract so that Moodle has an object which it knows will be able to deliver that file at a later point in time.

      Also encompasses work documented in MDL-68361 and MDL-68362.

        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:
              2 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 day, 3 hours, 47 minutes
                  1d 3h 47m