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

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • 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.

      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

            doraemonyoung Yang Yang
            pcharsle Paul Charsley
            Jérôme Mouneyrac Jérôme Mouneyrac
            Aparup Banerjee Aparup Banerjee
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.