MDL-49503 forum: Add view_forum_discussion to the mobile service
authorJuan Leyva <juanleyvadelgado@gmail.com>
Tue, 31 Mar 2015 10:26:32 +0000 (12:26 +0200)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 2 Apr 2015 15:11:27 +0000 (17:11 +0200)
lib/db/services.php
mod/forum/db/services.php
version.php

index 0383b29..308ba93 100644 (file)
@@ -1068,6 +1068,7 @@ $services = array(
             'core_course_view_course',
             'core_completion_get_activities_completion_status',
             'core_notes_get_course_notes',
+            'mod_forum_view_forum_discussion',
             ),
         'enabled' => 0,
         'restrictedusers' => 0,
index 66b5a76..09b4cb0 100644 (file)
@@ -71,4 +71,13 @@ $functions = array(
         'type' => 'write',
         'capabilities' => 'mod/forum:viewdiscussion'
     ),
+
+    'mod_forum_view_forum_discussion' => array(
+        'classname' => 'mod_forum_external',
+        'methodname' => 'view_forum_discussion',
+        'classpath' => 'mod/forum/externallib.php',
+        'description' => 'Simulate the forum/discuss.php web interface page: trigger events, completion, etc...',
+        'type' => 'write',
+        'capabilities' => 'mod/forum:viewdiscussion'
+    ),
 );
index 385d109..31a138f 100644 (file)
@@ -29,7 +29,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$version  = 2015040200.00;              // YYYYMMDD      = weekly release date of this DEV branch.
+$version  = 2015040200.01;              // YYYYMMDD      = weekly release date of this DEV branch.
                                         //         RR    = release increments - 00 in DEV branches.
                                         //           .XX = incremental changes.