MDL-54032 webservice: Fix plugin functions not using services
This commit is contained in:
@@ -30,6 +30,7 @@ $functions = array(
|
||||
'classname' => 'enrol_guest_external',
|
||||
'methodname' => 'get_instance_info',
|
||||
'description' => 'Return guest enrolment instance information.',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111601; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111602; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'enrol_guest'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
@@ -29,7 +29,8 @@ $functions = array(
|
||||
'methodname' => 'get_instance_info',
|
||||
'classpath' => 'enrol/self/externallib.php',
|
||||
'description' => 'self enrolment instance information.',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
|
||||
'enrol_self_enrol_user' => array(
|
||||
@@ -37,6 +38,7 @@ $functions = array(
|
||||
'methodname' => 'enrol_user',
|
||||
'classpath' => 'enrol/self/externallib.php',
|
||||
'description' => 'Self enrol the current user in the given course.',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'enrol_self'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 600;
|
||||
|
||||
@@ -30,7 +30,8 @@ $functions = array(
|
||||
'classpath' => 'grade/report/user/externallib.php',
|
||||
'description' => 'Get the user/s report grades table for a course',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'gradereport/user:view'
|
||||
'capabilities' => 'gradereport/user:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
'gradereport_user_view_grade_report' => array(
|
||||
'classname' => 'gradereport_user_external',
|
||||
@@ -38,6 +39,7 @@ $functions = array(
|
||||
'classpath' => 'grade/report/user/externallib.php',
|
||||
'description' => 'Trigger the report view event',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'gradereport/user:view'
|
||||
'capabilities' => 'gradereport/user:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'gradereport_user'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
+1
-9
@@ -1605,15 +1605,7 @@ $functions = array(
|
||||
|
||||
$services = array(
|
||||
'Moodle mobile web service' => array(
|
||||
'functions' => array (
|
||||
'enrol_guest_get_instance_info',
|
||||
'enrol_self_enrol_user',
|
||||
'enrol_self_get_instance_info',
|
||||
'gradereport_user_get_grades_table',
|
||||
'gradereport_user_view_grade_report',
|
||||
'message_airnotifier_are_notification_preferences_configured',
|
||||
'message_airnotifier_is_system_configured',
|
||||
),
|
||||
'functions' => array(),
|
||||
'enabled' => 0,
|
||||
'restrictedusers' => 0,
|
||||
'shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE,
|
||||
|
||||
@@ -31,6 +31,7 @@ $functions = array(
|
||||
'classpath' => 'message/output/airnotifier/externallib.php',
|
||||
'description' => 'Check whether the airnotifier settings have been configured',
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
|
||||
'message_airnotifier_are_notification_preferences_configured' => array(
|
||||
@@ -39,5 +40,6 @@ $functions = array(
|
||||
'classpath' => 'message/output/airnotifier/externallib.php',
|
||||
'description' => 'Check if the users have notification preferences configured yet',
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
*/
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2015111601; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->component = 'message_airnotifier'; // Full name of the plugin (used for diagnostics).
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2016042900.03; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2016042900.04; // 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