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

More webservices for Assignment

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Assignment, Web Services
    • Labels:
    • Story Points (Obsolete):
      8
    • Sprint:
      FRONTEND Sprint 3

      Description

      After a small bit of refactoring - most of the process_XXX functions in mod/assign/locallib.php would be suitable for calling from a webservice.

      List of simple functions:

      Function Description Parameters Returns
      mod_assign_revert_submissions_to_draft Revert a list of submissions to draft for a single assignment int assignmentid, array userids array of external warnings
      mod_assign_lock_submissions Lock a list of assignment submissions for a single assignment int assignmentid, array userids List of user ids array of external warnings
      mod_assign_unlock_submissions Unlock a list of assignment submissions for a single assignment int assignmentid, array userids List of user ids array of external warnings
      mod_assign_submit_for_grading Submit the current users submission for marking int assignmentid array of external warnings
      mod_assign_save_user_extensions Grant extension due dates to a list of students for a single assignment int assignmentid, array userids, array duedates array of external warnings
      mod_assign_reveal_identities Reveal the identities for users in a blind marking assignment int assignmentid array of external warnings

      More complicated functions:

      Function Description Parameters Returns
      mod_assign_save_submission Save a submission to the assignment as the current user int assignmentid, plugindata array of fields used by plugins to save the submission. The valid list of fields is dependent on the installed plugins array of external warnings
      mod_assign_save_grade Save a grade to the assignment as the current user int assignmentid, int userid, float grade, bool applytoall, plugindata array of fields used by plugins to save the feedback. The valid list of fields is dependent on the installed plugins array of external warnings

      Other contenders - download_all_submissions (link to download a zip - TBD)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    18/Nov/13