From 99bcb318959adfaa8a6a6c23c1b5a781acc9636c Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Wed, 13 Jun 2018 03:08:14 +1000 Subject: [PATCH] MDL-31355 mod_forum: WS should return duedate and cutoffdate. --- mod/forum/externallib.php | 2 ++ mod/forum/upgrade.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mod/forum/externallib.php b/mod/forum/externallib.php index ba39260253d..a53e2c41ad9 100644 --- a/mod/forum/externallib.php +++ b/mod/forum/externallib.php @@ -127,6 +127,8 @@ class mod_forum_external extends external_api { 'intro' => new external_value(PARAM_RAW, 'The forum intro'), 'introformat' => new external_format_value('intro'), 'introfiles' => new external_files('Files in the introduction text', VALUE_OPTIONAL), + 'duedate' => new external_value(PARAM_INT, 'duedate for the user', VALUE_OPTIONAL), + 'cutoffdate' => new external_value(PARAM_INT, 'cutoffdate for the user', VALUE_OPTIONAL), 'assessed' => new external_value(PARAM_INT, 'Aggregate type'), 'assesstimestart' => new external_value(PARAM_INT, 'Assess start time'), 'assesstimefinish' => new external_value(PARAM_INT, 'Assess finish time'), diff --git a/mod/forum/upgrade.txt b/mod/forum/upgrade.txt index 0eba55f6a05..f275f7434f7 100644 --- a/mod/forum/upgrade.txt +++ b/mod/forum/upgrade.txt @@ -9,6 +9,8 @@ information provided here is intended especially for developers. * The get_forum_discussion_posts web service has been deprecated in favour of get_discussion_posts. * The forum_count_replies function has been deprecated in favour of get_reply_count_for_post_id_in_discussion_id in the Post vault. + * External function get_forums_by_courses now returns two additional fields "duedate" and "cutoffdate" containing the due date and the cutoff date + for posting to the forums respectively. === 3.6 ===