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

Allow Dataformats to export files to a local path

    XMLWordPrintable

Details

    • MOODLE_38_STABLE
    • MOODLE_39_STABLE
    • Hide

      Exporting files

      1. Place dataformat_export.php in your wwwroot
      2. Run said script on CLI
      3. Confirm you have one file in the "tempdir/dataformat_export" folder for each dataformat type:

        $ php dataformat_export.php 
        == Using /mnt/export/moodle/master/data/temp/dataformat_export ==
        Exporting csv
        Exporting excel
        Exporting html
        Exporting json
        Exporting ods
        Exporting pdf
        

      Downloading files (regression test)

      1. Create some users
      2. Navigate to Users > Accounts > Bulk user actions in Site administration
      3. Select All users (X) and press Add to selection
      4. Select With selected users: Download and press Go
      5. Confirm you can download reports in different formats
      6. Create a course
      7. Enrol users in course
      8. Visit course participants page
      9. Select all users
      10. Confirm you can download reports in different formats when using With selected users
      11. Create a forum in the course
      12. Add some discussions/posts
      13. From the Actions menu select Export
      14. Confirm you can download reports in different formats
      Show
      Exporting files Place dataformat_export.php in your wwwroot Run said script on CLI Confirm you have one file in the "tempdir/dataformat_export" folder for each dataformat type: $ php dataformat_export.php == Using /mnt/export/moodle/master/data/temp/dataformat_export == Exporting csv Exporting excel Exporting html Exporting json Exporting ods Exporting pdf Downloading files (regression test) Create some users Navigate to Users > Accounts > Bulk user actions in Site administration Select All users (X) and press Add to selection Select With selected users: Download and press Go Confirm you can download reports in different formats Create a course Enrol users in course Visit course participants page Select all users Confirm you can download reports in different formats when using With selected users Create a forum in the course Add some discussions/posts From the Actions menu select Export Confirm you can download reports in different formats

    Description

      Split from MDL-55971 (which appears to be a more complex solution to a slightly different problem, but is stuck in limbo about what that should be)

      We (Workplace) need a means to export dataformats locally (via the openToFile() Spout method)

      Attachments

        1. dataformat_export.php
          0.8 kB
        2. MDL-68500.jpg
          MDL-68500.jpg
          104 kB
        3. MDL-68500 (2).jpg
          MDL-68500 (2).jpg
          128 kB
        4. MDL-68500 (3).jpg
          MDL-68500 (3).jpg
          92 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Marina Glancy Marina Glancy
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/Jun/20

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h