MDL-50032 webservice: Remove plugin functions from mobile service
This commit is contained in:
@@ -1213,29 +1213,9 @@ $services = array(
|
||||
'core_notes_delete_notes',
|
||||
'core_user_get_course_user_profiles',
|
||||
'core_message_send_instant_messages',
|
||||
'mod_assign_get_grades',
|
||||
'mod_assign_get_assignments',
|
||||
'mod_assign_get_submissions',
|
||||
'mod_assign_get_user_flags',
|
||||
'mod_assign_set_user_flags',
|
||||
'mod_assign_get_user_mappings',
|
||||
'mod_assign_revert_submissions_to_draft',
|
||||
'mod_assign_lock_submissions',
|
||||
'mod_assign_unlock_submissions',
|
||||
'mod_assign_save_submission',
|
||||
'mod_assign_submit_for_grading',
|
||||
'mod_assign_save_grade',
|
||||
'mod_assign_save_user_extensions',
|
||||
'mod_assign_reveal_identities',
|
||||
'message_airnotifier_is_system_configured',
|
||||
'message_airnotifier_are_notification_preferences_configured',
|
||||
'core_grades_update_grades',
|
||||
'mod_forum_get_forums_by_courses',
|
||||
'mod_forum_get_forum_discussions_paginated',
|
||||
'mod_forum_get_forum_discussion_posts',
|
||||
'mod_forum_add_discussion_post',
|
||||
'mod_forum_add_discussion',
|
||||
'mod_forum_can_add_discussion',
|
||||
'core_files_get_files',
|
||||
'core_message_get_messages',
|
||||
'core_message_create_contacts',
|
||||
@@ -1253,9 +1233,7 @@ $services = array(
|
||||
'core_course_get_courses',
|
||||
'core_completion_update_activity_completion_status_manually',
|
||||
'core_completion_mark_course_self_completed',
|
||||
'mod_data_get_databases_by_courses',
|
||||
'core_comment_get_comments',
|
||||
'mod_forum_view_forum',
|
||||
'core_course_view_course',
|
||||
'core_course_search_courses',
|
||||
'core_course_get_course_module',
|
||||
@@ -1267,69 +1245,11 @@ $services = array(
|
||||
'core_message_mark_message_read',
|
||||
'core_message_delete_message',
|
||||
'core_notes_view_notes',
|
||||
'mod_forum_view_forum_discussion',
|
||||
'core_user_view_user_profile',
|
||||
'gradereport_user_view_grade_report',
|
||||
'core_rating_get_item_ratings',
|
||||
'mod_url_view_url',
|
||||
'core_user_get_users_by_field',
|
||||
'core_user_add_user_private_files',
|
||||
'mod_assign_view_grading_table',
|
||||
'mod_assign_view_submission_status',
|
||||
'mod_scorm_view_scorm',
|
||||
'mod_scorm_get_scorm_scoes',
|
||||
'mod_scorm_get_scorm_user_data',
|
||||
'mod_scorm_insert_scorm_tracks',
|
||||
'mod_scorm_get_scorm_sco_tracks',
|
||||
'mod_scorm_get_scorm_attempt_count',
|
||||
'mod_scorm_get_scorms_by_courses',
|
||||
'mod_scorm_launch_sco',
|
||||
'mod_survey_get_surveys_by_courses',
|
||||
'mod_survey_view_survey',
|
||||
'mod_survey_get_questions',
|
||||
'mod_survey_submit_answers',
|
||||
'mod_page_view_page',
|
||||
'mod_resource_view_resource',
|
||||
'mod_folder_view_folder',
|
||||
'mod_chat_login_user',
|
||||
'mod_chat_get_chat_users',
|
||||
'mod_chat_send_chat_message',
|
||||
'mod_chat_get_chat_latest_messages',
|
||||
'mod_chat_view_chat',
|
||||
'mod_chat_get_chats_by_courses',
|
||||
'mod_book_view_book',
|
||||
'mod_book_get_books_by_courses',
|
||||
'mod_choice_get_choice_results',
|
||||
'mod_choice_get_choice_options',
|
||||
'mod_choice_submit_choice_response',
|
||||
'mod_choice_view_choice',
|
||||
'mod_choice_get_choices_by_courses',
|
||||
'mod_choice_delete_choice_responses',
|
||||
'mod_lti_get_tool_launch_data',
|
||||
'mod_lti_get_ltis_by_courses',
|
||||
'mod_lti_view_lti',
|
||||
'mod_imscp_view_imscp',
|
||||
'mod_imscp_get_imscps_by_courses',
|
||||
'mod_quiz_get_quizzes_by_courses',
|
||||
'mod_quiz_view_quiz',
|
||||
'mod_glossary_get_glossaries_by_courses',
|
||||
'mod_wiki_get_wikis_by_courses',
|
||||
'mod_wiki_view_wiki',
|
||||
'mod_wiki_view_page',
|
||||
'mod_wiki_get_subwikis',
|
||||
'mod_glossary_view_glossary',
|
||||
'mod_glossary_view_entry',
|
||||
'mod_glossary_get_entries_by_letter',
|
||||
'mod_glossary_get_entries_by_date',
|
||||
'mod_glossary_get_categories',
|
||||
'mod_glossary_get_entries_by_category',
|
||||
'mod_glossary_get_authors',
|
||||
'mod_glossary_get_entries_by_author',
|
||||
'mod_glossary_get_entries_by_author_id',
|
||||
'mod_glossary_get_entries_by_search',
|
||||
'mod_glossary_get_entries_by_term',
|
||||
'mod_glossary_get_entries_to_approve',
|
||||
'mod_glossary_get_entry_by_id',
|
||||
),
|
||||
'enabled' => 0,
|
||||
'restrictedusers' => 0,
|
||||
|
||||
+34
-17
@@ -30,7 +30,8 @@ $functions = array(
|
||||
'methodname' => 'get_grades',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Returns grades from the assignment',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_get_assignments' => array(
|
||||
@@ -38,7 +39,8 @@ $functions = array(
|
||||
'methodname' => 'get_assignments',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Returns the courses and assignments for the users capability',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_get_submissions' => array(
|
||||
@@ -46,7 +48,8 @@ $functions = array(
|
||||
'methodname' => 'get_submissions',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Returns the submissions for assignments',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_get_user_flags' => array(
|
||||
@@ -54,7 +57,8 @@ $functions = array(
|
||||
'methodname' => 'get_user_flags',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Returns the user flags for assignments',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_set_user_flags' => array(
|
||||
@@ -63,7 +67,8 @@ $functions = array(
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Creates or updates user flags',
|
||||
'type' => 'write',
|
||||
'capabilities'=> 'mod/assign:grade'
|
||||
'capabilities'=> 'mod/assign:grade',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_get_user_mappings' => array(
|
||||
@@ -71,7 +76,8 @@ $functions = array(
|
||||
'methodname' => 'get_user_mappings',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Returns the blind marking mappings for assignments',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_revert_submissions_to_draft' => array(
|
||||
@@ -79,7 +85,8 @@ $functions = array(
|
||||
'methodname' => 'revert_submissions_to_draft',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Reverts the list of submissions to draft status',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_lock_submissions' => array(
|
||||
@@ -87,7 +94,8 @@ $functions = array(
|
||||
'methodname' => 'lock_submissions',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Prevent students from making changes to a list of submissions',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_unlock_submissions' => array(
|
||||
@@ -95,7 +103,8 @@ $functions = array(
|
||||
'methodname' => 'unlock_submissions',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Allow students to make changes to a list of submissions',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_save_submission' => array(
|
||||
@@ -103,7 +112,8 @@ $functions = array(
|
||||
'methodname' => 'save_submission',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Update the current students submission',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_submit_for_grading' => array(
|
||||
@@ -111,7 +121,8 @@ $functions = array(
|
||||
'methodname' => 'submit_for_grading',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Submit the current students assignment for grading',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_save_grade' => array(
|
||||
@@ -119,7 +130,8 @@ $functions = array(
|
||||
'methodname' => 'save_grade',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Save a grade update for a single student.',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_save_grades' => array(
|
||||
@@ -127,7 +139,8 @@ $functions = array(
|
||||
'methodname' => 'save_grades',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Save multiple grade updates for an assignment.',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_save_user_extensions' => array(
|
||||
@@ -135,7 +148,8 @@ $functions = array(
|
||||
'methodname' => 'save_user_extensions',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Save a list of assignment extensions',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_reveal_identities' => array(
|
||||
@@ -143,7 +157,8 @@ $functions = array(
|
||||
'methodname' => 'reveal_identities',
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Reveal the identities for a blind marking assignment',
|
||||
'type' => 'write'
|
||||
'type' => 'write',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_view_grading_table' => array(
|
||||
@@ -152,7 +167,8 @@ $functions = array(
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Trigger the grading_table_viewed event.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/assign:view, mod/assign:viewgrades'
|
||||
'capabilities' => 'mod/assign:view, mod/assign:viewgrades',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_assign_view_submission_status' => array(
|
||||
@@ -161,6 +177,7 @@ $functions = array(
|
||||
'classpath' => 'mod/assign/externallib.php',
|
||||
'description' => 'Trigger the submission status viewed event.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/assign:view'
|
||||
'capabilities' => 'mod/assign:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_assign'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2015111602; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->cron = 60;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_book',
|
||||
'description' => 'Simulate the view.php web interface book: trigger events, completion, etc...',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/book:read'
|
||||
'capabilities' => 'mod/book:read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_book_get_books_by_courses' => array(
|
||||
@@ -42,6 +43,7 @@ $functions = array(
|
||||
'description' => 'Returns a list of book instances in a provided set of courses,
|
||||
if no courses are provided then all the book instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$plugin->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'login_user',
|
||||
'description' => 'Log a user into a chat room in the given chat.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
'capabilities' => 'mod/chat:chat',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_chat_get_chat_users' => array(
|
||||
@@ -41,7 +42,8 @@ $functions = array(
|
||||
'methodname' => 'get_chat_users',
|
||||
'description' => 'Get the list of users in the given chat session.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
'capabilities' => 'mod/chat:chat',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_chat_send_chat_message' => array(
|
||||
@@ -49,7 +51,8 @@ $functions = array(
|
||||
'methodname' => 'send_chat_message',
|
||||
'description' => 'Send a message on the given chat session.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
'capabilities' => 'mod/chat:chat',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_chat_get_chat_latest_messages' => array(
|
||||
@@ -57,7 +60,8 @@ $functions = array(
|
||||
'methodname' => 'get_chat_latest_messages',
|
||||
'description' => 'Get the latest messages from the given chat session.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
'capabilities' => 'mod/chat:chat',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_chat_view_chat' => array(
|
||||
@@ -65,7 +69,8 @@ $functions = array(
|
||||
'methodname' => 'view_chat',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
'capabilities' => 'mod/chat:chat',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_chat_get_chats_by_courses' => array(
|
||||
@@ -74,6 +79,7 @@ $functions = array(
|
||||
'description' => 'Returns a list of chat instances in a provided set of courses,
|
||||
if no courses are provided then all the chat instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_chat'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 300;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'get_choice_results',
|
||||
'description' => 'Retrieve users results for a given choice.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_choice_get_choice_options' => array(
|
||||
@@ -41,7 +42,8 @@ $functions = array(
|
||||
'methodname' => 'get_choice_options',
|
||||
'description' => 'Retrieve options for a specific choice.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/choice:choose'
|
||||
'capabilities' => 'mod/choice:choose',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_choice_submit_choice_response' => array(
|
||||
@@ -49,7 +51,8 @@ $functions = array(
|
||||
'methodname' => 'submit_choice_response',
|
||||
'description' => 'Submit responses to a specific choice item.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/choice:choose'
|
||||
'capabilities' => 'mod/choice:choose',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_choice_view_choice' => array(
|
||||
@@ -57,7 +60,8 @@ $functions = array(
|
||||
'methodname' => 'view_choice',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_choice_get_choices_by_courses' => array(
|
||||
@@ -66,7 +70,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of choice instances in a provided set of courses,
|
||||
if no courses are provided then all the choice instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_choice_delete_choice_responses' => array(
|
||||
@@ -74,6 +79,7 @@ $functions = array(
|
||||
'methodname' => 'delete_choice_responses',
|
||||
'description' => 'Delete the given submitted responses in a choice',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/choice:choose'
|
||||
'capabilities' => 'mod/choice:choose',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2016020100; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2016020101; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -32,6 +32,7 @@ $functions = array(
|
||||
'description' => 'Returns a list of database instances in a provided set of courses, if
|
||||
no courses are provided then all the database instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/data:viewentry'
|
||||
'capabilities' => 'mod/data:viewentry',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_folder',
|
||||
'description' => 'Simulate the view.php web interface folder: trigger events, completion, etc...',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/folder:view'
|
||||
'capabilities' => 'mod/folder:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2016020201; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2016020202; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
no courses are provided then all the forum instances the user has access to will be
|
||||
returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/forum:viewdiscussion'
|
||||
'capabilities' => 'mod/forum:viewdiscussion',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_get_forum_discussions' => array(
|
||||
@@ -52,7 +53,8 @@ $functions = array(
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Returns a list of forum posts for a discussion.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'
|
||||
'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_get_forum_discussions_paginated' => array(
|
||||
@@ -61,7 +63,8 @@ $functions = array(
|
||||
'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'
|
||||
'capabilities' => 'mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_view_forum' => array(
|
||||
@@ -70,7 +73,8 @@ $functions = array(
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/forum:viewdiscussion'
|
||||
'capabilities' => 'mod/forum:viewdiscussion',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_view_forum_discussion' => array(
|
||||
@@ -79,7 +83,8 @@ $functions = array(
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Trigger the forum discussion viewed event.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/forum:viewdiscussion'
|
||||
'capabilities' => 'mod/forum:viewdiscussion',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_add_discussion_post' => array(
|
||||
@@ -88,7 +93,8 @@ $functions = array(
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Create new posts into an existing discussion.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/forum:replypost'
|
||||
'capabilities' => 'mod/forum:replypost',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_add_discussion' => array(
|
||||
@@ -97,7 +103,8 @@ $functions = array(
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Add a new discussion into an existing forum.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/forum:startdiscussion'
|
||||
'capabilities' => 'mod/forum:startdiscussion',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_forum_can_add_discussion' => array(
|
||||
@@ -105,6 +112,7 @@ $functions = array(
|
||||
'methodname' => 'can_add_discussion',
|
||||
'classpath' => 'mod/forum/externallib.php',
|
||||
'description' => 'Check if the current user can add discussions in the given forum (and optionally for the given group).',
|
||||
'type' => 'read'
|
||||
'type' => 'read',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015120801; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015120802; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
@@ -32,7 +32,8 @@ $functions = array(
|
||||
'methodname' => 'get_glossaries_by_courses',
|
||||
'description' => 'Retrieve a list of glossaries from several courses.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_view_glossary' => array(
|
||||
@@ -40,7 +41,8 @@ $functions = array(
|
||||
'methodname' => 'view_glossary',
|
||||
'description' => 'Notify the glossary as being viewed.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_view_entry' => array(
|
||||
@@ -48,7 +50,8 @@ $functions = array(
|
||||
'methodname' => 'view_entry',
|
||||
'description' => 'Notify a glossary entry as being viewed.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_letter' => array(
|
||||
@@ -56,7 +59,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_letter',
|
||||
'description' => 'Browse entries by letter.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_date' => array(
|
||||
@@ -64,7 +68,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_date',
|
||||
'description' => 'Browse entries by date.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_categories' => array(
|
||||
@@ -72,7 +77,8 @@ $functions = array(
|
||||
'methodname' => 'get_categories',
|
||||
'description' => 'Get the categories.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_category' => array(
|
||||
@@ -80,7 +86,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_category',
|
||||
'description' => 'Browse entries by category.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_authors' => array(
|
||||
@@ -88,7 +95,8 @@ $functions = array(
|
||||
'methodname' => 'get_authors',
|
||||
'description' => 'Get the authors.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_author' => array(
|
||||
@@ -96,7 +104,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_author',
|
||||
'description' => 'Browse entries by author.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_author_id' => array(
|
||||
@@ -104,7 +113,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_author_id',
|
||||
'description' => 'Browse entries by author ID.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_search' => array(
|
||||
@@ -112,7 +122,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_search',
|
||||
'description' => 'Browse entries by search query.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_by_term' => array(
|
||||
@@ -120,7 +131,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_by_term',
|
||||
'description' => 'Browse entries by term (concept or alias).',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entries_to_approve' => array(
|
||||
@@ -128,7 +140,8 @@ $functions = array(
|
||||
'methodname' => 'get_entries_to_approve',
|
||||
'description' => 'Browse entries to be approved.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:approve'
|
||||
'capabilities' => 'mod/glossary:approve',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_glossary_get_entry_by_id' => array(
|
||||
@@ -136,7 +149,8 @@ $functions = array(
|
||||
'methodname' => 'get_entry_by_id',
|
||||
'description' => 'Get an entry by ID',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/glossary:view'
|
||||
'capabilities' => 'mod/glossary:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111605; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111606; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_imscp',
|
||||
'description' => 'Simulate the view.php web interface imscp: trigger events, completion, etc...',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/imscp:view'
|
||||
'capabilities' => 'mod/imscp:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_imscp_get_imscps_by_courses' => array(
|
||||
@@ -42,7 +43,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of IMSCP instances in a provided set of courses,
|
||||
if no courses are provided then all the IMSCP instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'moodle/imscp:view'
|
||||
'capabilities' => 'mod/imscp:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -31,7 +31,8 @@ $functions = array(
|
||||
'methodname' => 'get_tool_launch_data',
|
||||
'description' => 'Return the launch data for a given external tool.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/lti:view'
|
||||
'capabilities' => 'mod/lti:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_lti_get_ltis_by_courses' => array(
|
||||
@@ -40,7 +41,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of external tool instances in a provided set of courses, if
|
||||
no courses are provided then all the external tool instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/lti:view'
|
||||
'capabilities' => 'mod/lti:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_lti_view_lti' => array(
|
||||
@@ -48,6 +50,7 @@ $functions = array(
|
||||
'methodname' => 'view_lti',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/lti:view'
|
||||
'capabilities' => 'mod/lti:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_lti'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_page',
|
||||
'description' => 'Simulate the view.php web interface page: trigger events, completion, etc...',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/page:view'
|
||||
'capabilities' => 'mod/page:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -34,7 +34,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of quizzes in a provided list of courses,
|
||||
if no list is provided all quizzes that the user can view will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/quiz:view'
|
||||
'capabilities' => 'mod/quiz:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_quiz_view_quiz' => array(
|
||||
@@ -42,6 +43,7 @@ $functions = array(
|
||||
'methodname' => 'view_quiz',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/quiz:view'
|
||||
'capabilities' => 'mod/quiz:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111602;
|
||||
$plugin->version = 2015111603;
|
||||
$plugin->requires = 2015111000;
|
||||
$plugin->component = 'mod_quiz';
|
||||
$plugin->cron = 60;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_resource',
|
||||
'description' => 'Simulate the view.php web interface resource: trigger events, completion, etc...',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/resource:view'
|
||||
'capabilities' => 'mod/resource:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -31,7 +31,8 @@ $functions = array(
|
||||
'methodname' => 'view_scorm',
|
||||
'description' => 'Trigger the course module viewed event.',
|
||||
'type' => 'write',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_get_scorm_attempt_count' => array(
|
||||
@@ -39,7 +40,8 @@ $functions = array(
|
||||
'methodname' => 'get_scorm_attempt_count',
|
||||
'description' => 'Return the number of attempts done by a user in the given SCORM.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_get_scorm_scoes' => array(
|
||||
@@ -47,7 +49,8 @@ $functions = array(
|
||||
'methodname' => 'get_scorm_scoes',
|
||||
'description' => 'Returns a list containing all the scoes data related to the given scorm id',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_get_scorm_user_data' => array(
|
||||
@@ -55,7 +58,8 @@ $functions = array(
|
||||
'methodname' => 'get_scorm_user_data',
|
||||
'description' => 'Retrieves user tracking and SCO data and default SCORM values',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_insert_scorm_tracks' => array(
|
||||
@@ -66,7 +70,8 @@ $functions = array(
|
||||
Validation should be performed before running the function to ensure the user will not lose any existing
|
||||
attempt data.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/scorm:savetrack'
|
||||
'capabilities' => 'mod/scorm:savetrack',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_get_scorm_sco_tracks' => array(
|
||||
@@ -74,7 +79,8 @@ $functions = array(
|
||||
'methodname' => 'get_scorm_sco_tracks',
|
||||
'description' => 'Retrieves SCO tracking data for the given user id and attempt number',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_get_scorms_by_courses' => array(
|
||||
@@ -83,7 +89,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of scorm instances in a provided set of courses, if
|
||||
no courses are provided then all the scorm instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_scorm_launch_sco' => array(
|
||||
@@ -91,6 +98,7 @@ $functions = array(
|
||||
'methodname' => 'launch_sco',
|
||||
'description' => 'Trigger the SCO launched event.',
|
||||
'type' => 'write',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2016021000; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2016021001; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 300;
|
||||
|
||||
@@ -34,7 +34,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of survey instances in a provided set of courses,
|
||||
if no courses are provided then all the survey instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => ''
|
||||
'capabilities' => '',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_survey_view_survey' => array(
|
||||
@@ -42,7 +43,8 @@ $functions = array(
|
||||
'methodname' => 'view_survey',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/survey:participate'
|
||||
'capabilities' => 'mod/survey:participate',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_survey_get_questions' => array(
|
||||
@@ -50,7 +52,8 @@ $functions = array(
|
||||
'methodname' => 'get_questions',
|
||||
'description' => 'Get the complete list of questions for the survey, including subquestions.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/survey:participate'
|
||||
'capabilities' => 'mod/survey:participate',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_survey_submit_answers' => array(
|
||||
@@ -58,7 +61,8 @@ $functions = array(
|
||||
'methodname' => 'submit_answers',
|
||||
'description' => 'Submit the answers for a given survey.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/survey:participate'
|
||||
'capabilities' => 'mod/survey:participate',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_survey'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,8 @@ $functions = array(
|
||||
'methodname' => 'view_url',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/url:view'
|
||||
'capabilities' => 'mod/url:view',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2015111601; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -32,7 +32,8 @@ $functions = array(
|
||||
'description' => 'Returns a list of wiki instances in a provided set of courses, if ' .
|
||||
'no courses are provided then all the wiki instances the user has access to will be returned.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/wiki:viewpage'
|
||||
'capabilities' => 'mod/wiki:viewpage',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_wiki_view_wiki' => array(
|
||||
@@ -40,7 +41,8 @@ $functions = array(
|
||||
'methodname' => 'view_wiki',
|
||||
'description' => 'Trigger the course module viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/wiki:viewpage'
|
||||
'capabilities' => 'mod/wiki:viewpage',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_wiki_view_page' => array(
|
||||
@@ -48,7 +50,8 @@ $functions = array(
|
||||
'methodname' => 'view_page',
|
||||
'description' => 'Trigger the page viewed event and update the module completion status.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/wiki:viewpage'
|
||||
'capabilities' => 'mod/wiki:viewpage',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
),
|
||||
|
||||
'mod_wiki_get_subwikis' => array(
|
||||
@@ -56,6 +59,7 @@ $functions = array(
|
||||
'methodname' => 'get_subwikis',
|
||||
'description' => 'Returns the list of subwikis the user can see in a specific wiki.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'mod/wiki:viewpage'
|
||||
'capabilities' => 'mod/wiki:viewpage',
|
||||
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2016011101; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2016011102; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2015111000; // Requires this Moodle version
|
||||
$plugin->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
Reference in New Issue
Block a user