Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31409 Incorporate Lightwork into the Moodle core
  3. MDL-31863

Modify existing web service core_files_get_files to check the file modification time

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Files API, Web Services
    • Labels:
    • Testing Instructions:
      Hide

      For each test, you will need to change the code between /// PARAMETERs as specified

      $pararms = array(contextid,"component","filearea",itemid,"filepath","filename");

      Test 1) - With no modified value, the web service returns a list of files according to the rest of the parameters.
      /// PARAMETERS
      $pararms = array(contextid,"component","filearea",itemid,"filepath","filename");
      /// PARAMETERS
      The web services should return a list of files.

      Test 2) - With a specified modified value, the web service returns error message.
      /// PARAMETERS
      $pararms = array(contextid,"component","filearea",itemid,"filepath","filename", modified e.g. 1334265452);
      /// PARAMETERS
      The web services should return a list of files which the modification times are equal or greater than the specified modified value.

      Show
      For each test, you will need to change the code between /// PARAMETERs as specified $pararms = array(contextid,"component","filearea",itemid,"filepath","filename"); Test 1) - With no modified value, the web service returns a list of files according to the rest of the parameters. /// PARAMETERS $pararms = array(contextid,"component","filearea",itemid,"filepath","filename"); /// PARAMETERS The web services should return a list of files. Test 2) - With a specified modified value, the web service returns error message. /// PARAMETERS $pararms = array(contextid,"component","filearea",itemid,"filepath","filename", modified e.g. 1334265452); /// PARAMETERS The web services should return a list of files which the modification times are equal or greater than the specified modified value.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      Modify existing web service core_files_get_files to check the file modification time

      After clients have downloaded files from a file area for the first time they will want to make subsequent calls to this web service
      to check for files that have changed since the file was first downloaded.

      The parameters need to be modified so that the client can specify a modified_since value
      The return data needs to be modified to include the file's modification time

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12