MDL-49231 mod_glossary: Update service definition

This commit is contained in:
Frederic Massart
2015-12-31 15:18:40 +01:00
committed by Juan Leyva
parent c242e3f4dd
commit bca824f7a8
3 changed files with 83 additions and 1 deletions
+10
View File
@@ -1280,6 +1280,16 @@ $services = array(
'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,
+72
View File
@@ -67,4 +67,76 @@ $functions = array(
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_categories' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_categories',
'description' => 'Get the categories.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_by_category' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_by_category',
'description' => 'Browse entries by category.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_authors' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_authors',
'description' => 'Get the authors.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_by_author' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_by_author',
'description' => 'Browse entries by author.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_by_author_id' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_by_author_id',
'description' => 'Browse entries by author ID.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_by_search' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_by_search',
'description' => 'Browse entries by search query.',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_by_term' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_by_term',
'description' => 'Browse entries by term (concept or alias).',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
'mod_glossary_get_entries_to_approve' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entries_to_approve',
'description' => 'Browse entries to be approved.',
'type' => 'read',
'capabilities' => 'mod/glossary:approve'
),
'mod_glossary_get_entry_by_id' => array(
'classname' => 'mod_glossary_external',
'methodname' => 'get_entry_by_id',
'description' => 'Get an entry by ID',
'type' => 'read',
'capabilities' => 'mod/glossary:view'
),
);
+1 -1
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2015111604; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2015111605; // 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;