MDL-46458 forum: New WS get_forum_discussions_paginated services
This commit is contained in:
+1
-1
@@ -956,7 +956,7 @@ $services = array(
|
||||
'core_grades_get_grades',
|
||||
'core_grades_update_grades',
|
||||
'mod_forum_get_forums_by_courses',
|
||||
'mod_forum_get_forum_discussions',
|
||||
'mod_forum_get_forum_discussions_paginated',
|
||||
'mod_forum_get_forum_discussion_posts',
|
||||
'core_files_get_files'),
|
||||
'enabled' => 0,
|
||||
|
||||
@@ -52,5 +52,14 @@ $functions = array(
|
||||
'description' => 'Returns a list of forum posts for a discussion.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'
|
||||
)
|
||||
),
|
||||
|
||||
'mod_forum_get_forum_discussions_paginated' => array(
|
||||
'classname' => 'mod_forum_external',
|
||||
'methodname' => 'get_forum_discussions_paginated',
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Returns a list of forum discussions optionally sorted and paginated.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2014082100; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2014082101; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2014050800; // Requires this Moodle version
|
||||
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2014100200.00; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2014100200.01; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user