From 1bc85767b54e9e742e22b29c83143a6a300f8f85 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Mon, 30 Mar 2015 10:34:34 +0200 Subject: [PATCH] MDL-49500 grades: Add the new function to the mobile service --- grade/report/user/db/services.php | 8 ++++++++ grade/report/user/version.php | 2 +- lib/db/services.php | 1 + version.php | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/grade/report/user/db/services.php b/grade/report/user/db/services.php index 52ed7ef5127..872d1cb71a1 100644 --- a/grade/report/user/db/services.php +++ b/grade/report/user/db/services.php @@ -31,5 +31,13 @@ $functions = array( 'description' => 'Get the user/s report grades table for a course', 'type' => 'read', 'capabilities' => 'gradereport/user:view' + ), + 'gradereport_user_view_grade_report' => array( + 'classname' => 'gradereport_user_external', + 'methodname' => 'view_grade_report', + 'classpath' => 'grade/report/user/externallib.php', + 'description' => 'Trigger the report view event', + 'type' => 'write', + 'capabilities' => 'gradereport/user:view' ) ); diff --git a/grade/report/user/version.php b/grade/report/user/version.php index a0239ff9294..aca5a7b6762 100644 --- a/grade/report/user/version.php +++ b/grade/report/user/version.php @@ -24,6 +24,6 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2014111001; // The current plugin version (Date: YYYYMMDDXX) +$plugin->version = 2014111002; // The current plugin version (Date: YYYYMMDDXX) $plugin->requires = 2014110400; // Requires this Moodle version $plugin->component = 'gradereport_user'; // Full name of the plugin (used for diagnostics) diff --git a/lib/db/services.php b/lib/db/services.php index 0383b29e1e4..a94848d8ba7 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -1068,6 +1068,7 @@ $services = array( 'core_course_view_course', 'core_completion_get_activities_completion_status', 'core_notes_get_course_notes', + 'gradereport_user_view_grade_report', ), 'enabled' => 0, 'restrictedusers' => 0, diff --git a/version.php b/version.php index 385d10921d1..31a138f1061 100644 --- a/version.php +++ b/version.php @@ -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.