MDL-49502 forum: Add the new function to the mobile service
authorJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 26 Mar 2015 17:15:10 +0000 (18:15 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Fri, 27 Mar 2015 10:33:34 +0000 (11:33 +0100)
lib/db/services.php
mod/forum/db/services.php
mod/forum/version.php
version.php

index 47eb28c..2773012 100644 (file)
@@ -1023,7 +1023,8 @@ $services = array(
             'core_user_remove_user_device',
             'core_course_get_courses',
             'core_completion_update_activity_completion_status_manually',
-            'mod_data_get_databases_by_courses'
+            'mod_data_get_databases_by_courses',
+            'mod_forum_view_forum',
             ),
         'enabled' => 0,
         'restrictedusers' => 0,
index 48da4b8..66b5a76 100644 (file)
@@ -62,4 +62,13 @@ $functions = array(
         'type' => 'read',
         'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'
     ),
+
+    'mod_forum_view_forum' => array(
+        'classname' => 'mod_forum_external',
+        'methodname' => 'view_forum',
+        'classpath' => 'mod/forum/externallib.php',
+        'description' => 'Simulate the view.php web interface page: trigger events, completion, etc...',
+        'type' => 'write',
+        'capabilities' => 'mod/forum:viewdiscussion'
+    ),
 );
index 55b8097..9315fab 100644 (file)
@@ -24,6 +24,6 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$plugin->version   = 2015031200;       // The current module version (Date: YYYYMMDDXX)
+$plugin->version   = 2015031201;       // The current module version (Date: YYYYMMDDXX)
 $plugin->requires  = 2014110400;       // Requires this Moodle version
 $plugin->component = 'mod_forum';      // Full name of the plugin (used for diagnostics)
index 9495a9c..9172a17 100644 (file)
@@ -29,7 +29,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$version  = 2015032600.00;              // YYYYMMDD      = weekly release date of this DEV branch.
+$version  = 2015032600.01;              // YYYYMMDD      = weekly release date of this DEV branch.
                                         //         RR    = release increments - 00 in DEV branches.
                                         //           .XX = incremental changes.