MDL-37148 Assignment: Lots more webservices
authorDamyon Wiese <damyon@moodle.com>
Mon, 10 Dec 2012 06:47:31 +0000 (14:47 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 13 Sep 2013 05:29:51 +0000 (13:29 +0800)
commit05a6445a14ce182fa69df056faf247e83e838751
treeb6df17c1e5eb9618b3e245896bea1c868dc1eafc
parente2e9cb6a1451cccdf2bf7000f5082c696148d97c
MDL-37148 Assignment: Lots more webservices

This patch adds lots of webservices to the assignment module.
* mod_assign_revert_submissions_to_draft
* mod_assign_lock_submissions
* mod_assign_unlock_submissions
* mod_assign_save_submission
* mod_assign_submit_for_grading
* mod_assign_save_grade
* mod_assign_save_user_extensions
* mod_assign_reveal_identities
* mod_assign_copy_previous_attempt

All features such as reopening attempts and marking workflow are supported through
the save_grade and save_submission functions.

Uploading files is supported by sending draft item ids for the files_filemanager param the same functions.
14 files changed:
mod/assign/assignmentplugin.php
mod/assign/db/services.php
mod/assign/externallib.php
mod/assign/feedback/comments/locallib.php
mod/assign/feedback/file/locallib.php
mod/assign/locallib.php
mod/assign/submission/file/locallib.php
mod/assign/submission/onlinetext/locallib.php
mod/assign/submissionplugin.php
mod/assign/tests/base_test.php
mod/assign/tests/externallib_test.php
mod/assign/tests/locallib_test.php
mod/assign/upgrade.txt
mod/assign/version.php